summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-04-18 21:54:15 +0000
committerTheodore Tso <tytso@mit.edu>1995-04-18 21:54:15 +0000
commitabeb8ae5655eb0ef32f021408e83171b6bfb798e (patch)
treeff2d49a88840ad0a9b2cbb05fd3af29c8d5ccf3d /src
parent8c6f324ee1b38181db0cbcef1b6ea9422bc24ff6 (diff)
downloadkrb5-abeb8ae5655eb0ef32f021408e83171b6bfb798e.tar.gz
krb5-abeb8ae5655eb0ef32f021408e83171b6bfb798e.tar.xz
krb5-abeb8ae5655eb0ef32f021408e83171b6bfb798e.zip
Add production for creating the .depend file, and updating the
Makefile.in with the new dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5370 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/config/ChangeLog6
-rw-r--r--src/config/post.in16
2 files changed, 22 insertions, 0 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog
index 483466453..6a192bd7a 100644
--- a/src/config/ChangeLog
+++ b/src/config/ChangeLog
@@ -1,3 +1,9 @@
+Tue Apr 18 09:36:00 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
+
+ * post.in (.depend, depend): Add production for creating the
+ .depend file, and updating the Makefile.in with the
+ new dependencies.
+
Thu Apr 13 16:20:28 1995 Keith Vetter (keithv@fusion.com)
* windows.in: compile with stdc extensions enabled versus
diff --git a/src/config/post.in b/src/config/post.in
index f06af3c22..4f5e0e291 100644
--- a/src/config/post.in
+++ b/src/config/post.in
@@ -5,11 +5,27 @@ all::
check::
+.depend: $(SRCS) $(SRCTOP)/util/depfix.sed
+ if test -n "$(SRCS)" ; then \
+ cc -M $(CFLAGS) $(SRCS) | sed -f $(SRCTOP)/util/depfix.sed | \
+ sed -e 's;$(srcdir)/;$$(srcdir)/;g' > .depend; \
+ else :; fi
+
+depend: .depend
+ if test -n "$(SRCS)" ; then \
+ sed -e '/^# +++ Dependency line eater +++/,$$d' \
+ < $(srcdir)/Makefile.in | cat - .depend \
+ > $(srcdir)/Makefile.in.new; \
+ $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
+ $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
+ else :; fi
+
clean:: clean-$(WHAT)
$(RM) config.log pre.out post.out Makefile.out
clean-unix::
if test -n "$(OBJS)" ; then $(RM) $(OBJS); else :; fi
+ $(RM) .depend
clean-windows::
$(RM) *.$(OBJEXT)