From b1f25da6362d2bb38aa5b1eaea73a4609b0c906b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 6 Jun 2019 22:21:33 +0000 Subject: build-info.sh script to create Work/buildinfo.log git-svn-id: svn://tug.org/texlive/trunk@51335 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/Makefile.in | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'Build/source/Makefile.in') diff --git a/Build/source/Makefile.in b/Build/source/Makefile.in index 91556fa9aef..9160a978016 100644 --- a/Build/source/Makefile.in +++ b/Build/source/Makefile.in @@ -513,6 +513,9 @@ CONFIG_AUX = $(recurse_top)subsubdir-conf.cmd # at install-data, and fmtutil.cnf won't be there at install-exec, # and there is no install-hook or install-local. texlinks_dir = texk/texlive/tl_scripts + +# should be harmless to run that, but just in case: +build_info_target = build-info @cross_FALSE@check_target = check # Allow for skipping make check if needed. @@ -1029,17 +1032,33 @@ $(CONFIG_AUX): @echo "configure in $(recurse_top)auxdir/auxsub failed to create the file $@" exit 1 -# This is the default target for the Build script in TeX Live. +# This (world) is the default target for the ./Build script in TeX Live. .PHONY: world world: all + @echo "top-level make $@: running $(build_info_target)..." + $(MAKE) $(AM_MAKEFLAGS) $(build_info_target) +# +# Serialize 'make all' and 'make install-strip'. @echo "top-level make $@: running install-strip..." $(MAKE) $(AM_MAKEFLAGS) install-strip - @echo "top-level make $@: running texlinks in $(texlinks_dir) ..." +# + @echo "top-level make $@: making run-texlinks in $(texlinks_dir) ..." cd $(texlinks_dir) && $(MAKE) $(AM_MAKEFLAGS) run-texlinks +# @echo "top-level make $@: running $(check_target)..." $(MAKE) $(AM_MAKEFLAGS) $(check_target) +# @echo "top-level make $@ done." +# create file buildinfo.log in working directory, to record relevant +# information about the build environment. +build-info: + -env MAKE="$(MAKE)" LDFLAGS="$(LDFLAGS)" \ + CC="$(CC)" CFLAGS="$(CFLAGS)" \ + CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" \ + OBJC="$(OBJC)" OBJCXXFLAGS="$(OBJCXXFLAGS)" \ + $(srcdir)/doc/build-info.sh >buildinfo.log + install-exec-hook: @echo "WARNING: make install does not result in a usable TeX!" @echo " ! The binaries require the myriad support files." -- cgit v1.2.3