* Makefile.in (include/generated.stmp): New intermediate target file, to
authorKen Raeburn <raeburn@mit.edu>
Sat, 12 Jun 2004 01:09:43 +0000 (01:09 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 12 Jun 2004 01:09:43 +0000 (01:09 +0000)
prevent repeated generation of unchanging header files.
(include/config.h, include/db-config.h): Depend on it.
($(srcdir)/include/autoconf.stmp, $(srcdir)/include/config.h.in): Likewise.
(clean-includes): Delete the new intermediate target files.
* configure.in: Generate include/generated.stmp when config.status is run.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16438 dc483132-0cff-0310-8789-dd5450dbe970

src/util/db2/ChangeLog
src/util/db2/Makefile.in
src/util/db2/configure.in

index 0785be03145b282085011cfdb6d267edf67107ff..146525c81edd600c4ef6bc45a529a7f05025e925 100644 (file)
@@ -1,3 +1,14 @@
+2004-06-11  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (include/generated.stmp): New intermediate target
+       file, to prevent repeated generation of unchanging header files.
+       (include/config.h, include/db-config.h): Depend on it.
+       ($(srcdir)/include/autoconf.stmp, $(srcdir)/include/config.h.in):
+       Likewise.
+       (clean-includes): Delete the new intermediate target files.
+       * configure.in: Generate include/generated.stmp when config.status
+       is run.
+
 2004-06-08  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in ($(srcdir)/include/config.h.in): Always use
index 95a2fe6581db2236fe284eef8a7636915f9dc9bf..37542aee4506f7eb0a2c1e1005ec1e1de1bbdfed 100644 (file)
@@ -28,13 +28,14 @@ $(HDRDIR)/db-config.h: include/db-config.h
 $(HDRDIR)/db-ndbm.h: $(srcdir)/include/db-ndbm.h
        $(CP) $(srcdir)/include/db-ndbm.h $@
 
-include/config.h: $(srcdir)/include/config.h.in
+include/config.h include/db-config.h: include/generated.stmp
+include/generated.stmp: $(srcdir)/include/config.h.in $(srcdir)/include/db-config.h.in
        cd $(thisconfigdir) && $(SHELL) config.status
-$(srcdir)/include/config.h.in: @MAINT@ $(srcdir)/configure.in $(SRCTOP)/aclocal.m4
+$(srcdir)/include/config.h.in: @MAINT@ $(srcdir)/include/autoconf.stmp
+$(srcdir)/include/autoconf.stmp: $(srcdir)/configure.in $(SRCTOP)/aclocal.m4
        cd $(srcdir) && $(AUTOHEADER) --include=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS)
-include/db-config.h: $(srcdir)/include/db-config.h.in
-       cd $(thisconfigdir) && $(SHELL) config.status
+       touch $(srcdir)/include/autoconf.stmp
 
 clean-includes::
-       $(RM) $(HDRS)
+       $(RM) $(HDRS) include/*.stmp
 # @lib_frag@
index c5930b585e7241fecb893e7cefaa48c3d11af924..bb912a361f787e9137e1e661d249e5533b820679 100644 (file)
@@ -92,4 +92,5 @@ KRB5_BUILD_LIBRARY
 KRB5_BUILD_LIBOBJS
 KRB5_BUILD_PROGRAM
 KRB5_RUN_FLAGS
+AC_CONFIG_FILES(include/generated.stmp:Makefile.in)
 V5_AC_OUTPUT_MAKEFILE(. hash btree db mpool recno clib test)