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 \
31 # Files not to be distributed
32 include $(srcdir)/am/dist_hook.am
34 SUBDIRS = . doc $(MAKE_SUBDIRS) libs utils texk
35 DIST_SUBDIRS = auxdir/auxsub doc $(CONF_SUBDIRS) libs utils texk
37 ## Configure and build subdirs.
42 include $(srcdir)/am/recurse.am
44 # This is the default target for the Build script in TeX Live.
46 # Run texlinks here since the binaries won't be there
47 # at install-data, and fmtutil.cnf won't be there at install-exec,
48 # and there is no install-hook or install-local.
49 texlinks_dir = texk/texlive/tl_scripts
51 ## Serialize 'make all' and 'make install-strip'.
52 @echo "top-level make $@: running install-strip..."
53 $(MAKE) $(AM_MAKEFLAGS) install-strip
55 @echo "top-level make $@: running texlinks in $(texlinks_dir) ..."
56 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
58 @echo "top-level make $@: running $(check_target)..."
59 $(MAKE) $(AM_MAKEFLAGS) $(check_target)
61 @echo "top-level make $@ done."
63 # Allow for skipping make check if needed.
72 # Directly run texlinks.
75 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
77 # Special target to run TRIP and TRAP tests and create diffs.
80 cd texk && $(MAKE) $(AM_MAKEFLAGS) $@