diff options
author | Karl Berry <karl@freefriends.org> | 2007-07-15 00:34:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-07-15 00:34:02 +0000 |
commit | c9a33e40d8da60f0eef7cf8d85f75edc9fa5926d (patch) | |
tree | e054793454d162d2f3067548fd27d4ee5d69abb9 /Build/source/texk/make | |
parent | e66e2b69bc912c75aeaa0bd0b32b90ab687fb6da (diff) |
update dependences per request from Martin
git-svn-id: svn://tug.org/texlive/trunk@4588 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/make')
-rw-r--r-- | Build/source/texk/make/rdepend.mk | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Build/source/texk/make/rdepend.mk b/Build/source/texk/make/rdepend.mk index 85b0ce3c33c..a121a33d14f 100644 --- a/Build/source/texk/make/rdepend.mk +++ b/Build/source/texk/make/rdepend.mk @@ -1,21 +1,25 @@ -# rdepend.mk -- rules for remaking the dependencies. +# rdepend.mk -- rules for remaking the dependencies. Public domain. +# $Id$ @MAINT@# @MAINT@# Have to use -M, not -MM, since we use <kpathsea/...> instead of @MAINT@# "kpathsea/..." in the sources. But that means we have to remove the @MAINT@# directory prefixes and all the system include files. @MAINT@# And <kpathsea/paths.h> is generated, not part of the distribution. +@MAINT@# We also remove any ../texk/kpathsea path component, since that comes +@MAINT@# VPATH when srcdir != builddir. +@MAINT@# +@MAINT@# There's no need for any installer/user to ever run this, it can +@MAINT@# only cause trouble. So comment it out by default. @MAINT@# -@MAINT@# And, there's no need for any installer/user to ever run this, it can -@MAINT@# only cause trouble. So comment it out in the distribution. -@MAINT@# (It doesn't work when the source and build directories are different.) @MAINT@ifndef c_auto_h_dir @MAINT@c_auto_h_dir = . @MAINT@endif @MAINT@ @MAINT@depend depend.mk:: $(c_auto_h_dir)/c-auto.h \ @MAINT@ $(top_srcdir)/../make/rdepend.mk -@MAINT@ $(CC) -M $(ALL_CPPFLAGS) -I$(c_auto_h_dir) *.c \ -@MAINT@ | sed -e 's,\(\.\./\)\+kpathsea/,$$(kpathsea_srcdir)/,g' \ +@MAINT@ $(CC) -M $(ALL_CPPFLAGS) -I$(c_auto_h_dir) $(srcdir)/*.c \ +@MAINT@ | sed -e 's,\(\.\./\)\+texk/kpathsea/,,' \ +@MAINT@ -e 's,\(\.\./\)\+kpathsea/,$$(kpathsea_srcdir)/,g' \ @MAINT@ -e 's,$$(kpathsea_srcdir)/c-auto.h,$$(kpathsea_dir)/c-auto.h,g' \ @MAINT@ -e 's,$$(kpathsea_srcdir)/paths.h,$$(kpathsea_dir)/paths.h,g' \ @MAINT@ -e 's, /[^ ]*,,g' \ |