+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
$(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@