From: Theodore Tso Date: Tue, 18 Apr 1995 21:54:15 +0000 (+0000) Subject: Add production for creating the .depend file, and updating the X-Git-Tag: krb5-1.0-beta5~366 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abeb8ae5655eb0ef32f021408e83171b6bfb798e;p=krb5.git 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 --- 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 + + * 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)