From 096cc38a53a97d256baac3a387ad7b780d68a1c9 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 11 Jun 2008 17:42:56 +0000 Subject: [PATCH] New target 'undepend' for temporarily removing generated dependency info git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20390 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/post.in | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/config/post.in b/src/config/post.in index ca6b94d1d..5479893b0 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -100,6 +100,20 @@ DEPTARGETS = .depend .d .dtmp $(DEP_VERIFY) DEPTARGETS_CLEAN = .depend .d .dtmp $(DEPTARGETS_@srcdir@_@CONFIG_RELTOPDIR@) DEPTARGETS_@top_srcdir@_. = $(DEP_VERIFY) +# Clear out dependencies. Should only be used temporarily, e.g., while +# moving or renaming headers and then rebuilding dependencies. +undepend:: undepend-postrecurse +undepend-recurse: +undepend-postrecurse: undepend-recurse + if test -n "$(SRCS)" ; then \ + sed -e '/^# +++ Dependency line eater +++/,$$d' \ + < $(srcdir)/Makefile.in \ + > $(srcdir)/Makefile.in.new ;\ + echo "# +++ Dependency line eater +++" >> $(srcdir)/Makefile.in.new ;\ + echo "# (dependencies temporarily removed)" >> $(srcdir)/Makefile.in.new ;\ + $(SRCTOP)/config/move-if-changed $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in;\ + else :; fi + # # end dependency generation ############################## @@ -146,7 +160,8 @@ $(srcdir)/$(thisconfigdir)/configure: @MAINT@ \ RECURSE_TARGETS=all-recurse clean-recurse distclean-recurse install-recurse \ generate-files-mac-recurse \ - check-recurse depend-recurse Makefiles-recurse install-headers-recurse + check-recurse depend-recurse undepend-recurse \ + Makefiles-recurse install-headers-recurse # MY_SUBDIRS overrides any setting of SUBDIRS generated by the # configure script that generated this Makefile. This is needed when -- 2.26.2