1 ## Makefile.am for the TeX Live top-level
3 ## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
4 ## You may freely use, modify and/or distribute this file.
6 ## Ensure aclocal.m4 is up to date
7 ACLOCAL = @ACLOCAL@ --force
10 AM_DISTCHECK_CONFIGURE_FLAGS = -C
11 ## check as well for symlinks
12 distuninstallcheck_listfiles = find . -type f -o -type l -print
13 distcleancheck_listfiles = find . -type f -o -type l -print
18 README.1prerequisites \
30 # Files not to be distributed
31 include $(srcdir)/am/dist_hook.am
33 SUBDIRS = . doc $(MAKE_SUBDIRS) libs utils texk
34 DIST_SUBDIRS = auxdir/auxsub doc $(CONF_SUBDIRS) libs utils texk
36 ## Configure and build subdirs.
41 include $(srcdir)/am/recurse.am
43 # This is the default target for the Build script in TeX Live.
45 # Run texlinks here since the binaries won't be there
46 # at install-data, and fmtutil.cnf won't be there at install-exec,
47 # and there is no install-hook or install-local.
48 texlinks_dir = texk/texlive/tl_scripts
50 ## Serialize 'make all' and 'make install-strip'.
51 @echo "top-level make $@: running install-strip..."
52 $(MAKE) $(AM_MAKEFLAGS) install-strip
54 @echo "top-level make $@: running texlinks in $(texlinks_dir) ..."
55 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
57 @echo "top-level make $@: running $(check_target)..."
58 $(MAKE) $(AM_MAKEFLAGS) $(check_target)
60 @echo "top-level make $@ done."
62 # Allow for skipping make check if needed.
71 # Directly run texlinks.
74 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
76 # Special target to run TRIP and TRAP tests and create diffs.
79 cd texk && $(MAKE) $(AM_MAKEFLAGS) $@