beta-0.89.2
[luatex.git] / source / Makefile.am
blobd30d075f43a640b382f7ee4261e932be3b37bc71
1 ## Makefile.am for the TeX Live top-level
2 ##
3 ## Copyright (C) 2009-2015 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
7 ACLOCAL = @ACLOCAL@ --force
9 ## speed up distcheck
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
15 EXTRA_DIST = \
16         Build \
17         README.0overview \
18         README.1prerequisites \
19         README.2building \
20         README.3installing \
21         README.4layout \
22         README.5configure \
23         README.6cross \
24         README.7coding \
25         build-aux/README.TL \
26         m4/ChangeLog \
27         m4/README \
28         reautoconf
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.
38 recurse_this =
39 recurse_top =
41 include $(srcdir)/am/recurse.am
43 # This is the default target for the Build script in TeX Live.
44 .PHONY: world
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
49 world: all
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.
63 if cross
64 check_target = skip
65 else !cross
66 check_target = check
67 endif !cross
68 skip:
69 .PHONY: skip
71 # Directly run texlinks.
72 .PHONY: texlinks
73 texlinks:
74         cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks
76 # Special target to run TRIP and TRAP tests and create diffs.
77 .PHONY: triptrap
78 triptrap:
79         cd texk && $(MAKE) $(AM_MAKEFLAGS) $@