diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-07 14:29:53 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-07 14:29:53 +0000 |
commit | 0df6dd4d8aea6edc733de81fb7eec115ea59a36e (patch) | |
tree | e2f7056cb53c58c8ef5779450ac468091b2bd86d /Build/source/texk/kpathsea/Makefile.am | |
parent | 3675a91dd83af3eaa1c1a12e91af1e6c86f710f8 (diff) |
build system: additional Makefile fragments
better handling of dependencies for highly parallel make
git-svn-id: svn://tug.org/texlive/trunk@31127 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/Makefile.am')
-rw-r--r-- | Build/source/texk/kpathsea/Makefile.am | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/Build/source/texk/kpathsea/Makefile.am b/Build/source/texk/kpathsea/Makefile.am index 37b104c2c7a..029fe0cd950 100644 --- a/Build/source/texk/kpathsea/Makefile.am +++ b/Build/source/texk/kpathsea/Makefile.am @@ -5,11 +5,6 @@ ## ACLOCAL_AMFLAGS = -I ../../m4 -# Rebuild -.PHONY: rebuild -rebuild: all-am - touch libkpathsea.la - SUBDIRS = . doc man EXTRA_DIST = BUGS PROJECTS @@ -211,13 +206,25 @@ stamp-paths: texmf.cnf bsnl.awk cnf-to-paths.awk rm -f paths.tmp date >$@ -kpathsea.h: Makefile paths.h +## Similarly we don't want to rewrite kpathsea.h when only Makefile has +## been remade but kpathsea.h remains the same. +## +kpathsea.h: stamp-kpathsea +stamp-kpathsea: Makefile paths.h $(AM_V_GEN)rm -f $@; \ ( echo '/* This is a generated file */'; \ echo '/* collecting all public kpathsea headers. */'; \ for f in config.h c-auto.h paths.h $(normal_headers); do \ echo "#include <kpathsea/$$f>"; \ - done ) >$@ + done ) >kpathsea.tmp + @if cmp -s kpathsea.h kpathsea.tmp 2>/dev/null; then \ + echo "kpathsea.h is unchanged"; \ + else \ + echo "cp kpathsea.tmp kpathsea.h"; \ + cp kpathsea.tmp kpathsea.h; \ + fi + rm -f kpathsea.tmp + date >$@ EXTRA_DIST += bsnl.awk cnf-to-paths.awk @@ -300,6 +307,13 @@ TESTS = kpseaccess.test kpsereadlink.test kpsestat.test kpsewhich.test TESTS_ENVIRONMENT = LN_S='$(LN_S)' LT_OBJDIR='$(LT_OBJDIR)' EXTRA_DIST += $(TESTS) +# Rebuild +rebuild_prereq = +rebuild_target = all-am +CLEANFILES = + +include $(srcdir)/../../am/rebuild.am + ## Not used ## EXTRA_DIST += mktex.cnf |