2 ## Makefile.am for the TeX Live top-level
4 ## Copyright 2016 Karl Berry <tex-live@tug.org>
5 ## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
6 ## You may freely use, modify and/or distribute this file.
8 ## Ensure aclocal.m4 is up to date
9 ACLOCAL = @ACLOCAL@ --force
12 AM_DISTCHECK_CONFIGURE_FLAGS = -C
13 ## check as well for symlinks
14 distuninstallcheck_listfiles = find . -type f -o -type l -print
15 distcleancheck_listfiles = find . -type f -o -type l -print
20 README.1prerequisites \
32 # Files not to be distributed
33 include $(srcdir)/am/dist_hook.am
35 SUBDIRS = . doc $(MAKE_SUBDIRS) libs utils texk
36 DIST_SUBDIRS = auxdir/auxsub doc $(CONF_SUBDIRS) libs utils texk
38 ## Configure and build subdirs.
43 include $(srcdir)/am/recurse.am
45 # This is the default target for the Build script in TeX Live.
47 # Run texlinks here since the binaries won't be there
48 # at install-data, and fmtutil.cnf won't be there at install-exec,
49 # and there is no install-hook or install-local.
50 texlinks_dir = texk/texlive/tl_scripts
52 ## Serialize 'make all' and 'make install-strip'.
53 @echo "top-level make $@: running install-strip..."
54 $(MAKE) $(AM_MAKEFLAGS) install-strip
56 @echo "top-level make $@: running texlinks in $(texlinks_dir) ..."
57 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
59 @echo "top-level make $@: running $(check_target)..."
60 $(MAKE) $(AM_MAKEFLAGS) $(check_target)
62 @echo "top-level make $@ done."
65 @echo "WARNING: make install does not result in a usable TeX!"
66 @echo " ! The binaries require the myriad support files."
67 @echo " ! See http://tug.org/texlive/distro.html"
68 @echo " ! and http://tug.org/texlive/build.html#deploy, for example."
70 # Allow for skipping make check if needed.
79 # Directly run texlinks.
82 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
84 # Special target to run TRIP and TRAP tests and create diffs.
87 cd texk && $(MAKE) $(AM_MAKEFLAGS) $@