diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
commit | ad547a6b5986815fda458221149728d9d9ab1d87 (patch) | |
tree | 16296910eb3eca724371474ea9aea3994dc69614 /Build/source/Makefile.am | |
parent | 947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff) |
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/Makefile.am')
-rw-r--r-- | Build/source/Makefile.am | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Build/source/Makefile.am b/Build/source/Makefile.am new file mode 100644 index 00000000000..7db6b6b5136 --- /dev/null +++ b/Build/source/Makefile.am @@ -0,0 +1,105 @@ +## $Id$ +## Makefile.am for the TeX Live top-level +## +## Copyright 2016-2020 Karl Berry <tex-live@tug.org> +## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org> +## You may freely use, modify and/or distribute this file. +## +## Ensure aclocal.m4 is up to date +ACLOCAL = @ACLOCAL@ --force + +## speed up distcheck +AM_DISTCHECK_CONFIGURE_FLAGS = -C +## check as well for symlinks +distuninstallcheck_listfiles = find . -type f -o -type l -print +distcleancheck_listfiles = find . -type f -o -type l -print + +EXTRA_DIST = \ + Build \ + README.0overview \ + README.1prerequisites \ + README.2building \ + README.3installing \ + README.4layout \ + README.5configure \ + README.6cross \ + README.7coding \ + build-aux/README.TL \ + m4/ChangeLog \ + m4/README \ + reautoconf + +# Files not to be distributed +include $(srcdir)/am/dist_hook.am + +SUBDIRS = . doc $(MAKE_SUBDIRS) libs utils texk +DIST_SUBDIRS = auxdir/auxsub doc $(CONF_SUBDIRS) libs utils texk + +## Configure and build subdirs. +## +recurse_this = +recurse_top = + +include $(srcdir)/am/recurse.am + +# This (world) is the default target for the ./Build script in TeX Live. +.PHONY: world +# Run texlinks here since the binaries won't be there +# at install-data, and fmtutil.cnf won't be there at install-exec, +# and there is no install-hook or install-local. +texlinks_dir = texk/texlive/tl_support +world: all +# Serialize 'make all' and 'make install-strip'. + @echo "top-level make $@: running install-strip..." + $(MAKE) $(AM_MAKEFLAGS) install-strip +# +# Just in case it's not a full checkout. + if test -d "$(texlinks_dir)"; then \ + echo "top-level make $@: making run-texlinks in $(texlinks_dir) ..."; \ + cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks; \ + else :; fi +# + @echo "top-level make $@: running $(check_target)..." + $(MAKE) $(AM_MAKEFLAGS) $(check_target) +# + @echo "top-level make $@ done." + +# create file buildinfo.log in working directory, to record relevant +# information about the build environment. +buildinfo: + -env MAKE="$(MAKE)" LDFLAGS="$(LDFLAGS)" \ + CC="$(CC)" CFLAGS="$(CFLAGS)" \ + CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \ + OBJCXX="$(OBJCXX)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \ + $(srcdir)/doc/buildinfo.sh >buildinfo.log + +# should be harmless to run it, but just in case: +build_info_target = buildinfo + +# run buildinfo first. +all-recursive: buildinfo + +install-exec-hook: + @echo "WARNING: make install does not result in a usable TeX!" + @echo " ! The binaries require the myriad support files." + @echo " ! See http://tug.org/texlive/distro.html" + @echo " ! and http://tug.org/texlive/build.html#deploy, for example." + +# Allow for skipping make check if needed. +if cross +check_target = skip +else !cross +check_target = check +endif !cross +skip: +.PHONY: skip + +# Convenience targets to run texlinks and reautoconf. +.PHONY: texlinks +texlinks: + cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks + +# Special target to run TRIP and TRAP tests and create diffs. +.PHONY: triptrap +triptrap: + cd texk && $(MAKE) $(AM_MAKEFLAGS) $@ |