1## Makefile.am for the TeX Live top-level 2## 3## Copyright (C) 2009-2013 Peter Breitenlohner <tex-live@tug.org> 4## You may freely use, modify and/or distribute this file. 5## 6## Ensure aclocal.m4 is up to date 7ACLOCAL = @ACLOCAL@ --force 8 9## speed up distcheck 10AM_DISTCHECK_CONFIGURE_FLAGS = -C 11## check as well for symlinks 12distuninstallcheck_listfiles = find . -type f -o -type l -print 13distcleancheck_listfiles = find . -type f -o -type l -print 14 15EXTRA_DIST = \ 16 Build \ 17 README.coding \ 18 README.config \ 19 README.cross \ 20 README.distro \ 21 README.hacking \ 22 README.layout \ 23 build-aux/README.TL \ 24 m4/ChangeLog \ 25 m4/README \ 26 reautoconf 27 28# just in case a subdirectory has added directories 29dist-hook: 30 rm -rf `find $(distdir) -name .svn` 31 32SUBDIRS = . $(MAKE_SUBDIRS) libs utils texk 33DIST_SUBDIRS = auxdir/auxsub doc $(CONF_SUBDIRS) libs utils texk 34 35## Configure and build subdirs. 36## 37recurse_this = 38recurse_top = 39 40include $(srcdir)/am/recurse.am 41 42# This is the default target for the Build script in TeX Live. 43.PHONY: world 44# Run texlinks here since the binaries won't be there 45# at install-data, and fmtutil.cnf won't be there at install-exec, 46# and there is no install-hook or install-local. 47texlinks_dir = texk/texlive/tl_scripts 48world: all 49## Serialize 'make all' and 'make install-strip'. 50 @echo "top-level make $@: running install-strip..." 51 $(MAKE) $(AM_MAKEFLAGS) install-strip 52## 53 @echo "top-level make $@: running texlinks in $(texlinks_dir) ..." 54 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks 55## 56 @echo "top-level make $@: running $(check_target)..." 57 $(MAKE) $(AM_MAKEFLAGS) $(check_target) 58## 59 @echo "top-level make $@ done." 60 61# Allow for skipping make check if needed. 62if cross 63check_target = skip 64else !cross 65check_target = check 66endif !cross 67skip: 68.PHONY: skip 69 70# Directly run texlinks. 71.PHONY: texlinks 72texlinks: 73 cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks 74 75# Special target to run TRIP and TRAP tests and create diffs. 76.PHONY: triptrap 77triptrap: 78 cd texk && $(MAKE) $(AM_MAKEFLAGS) $@ 79