Makefile.in: Add rules to rebuild config.h.in when needed.
authorAndreas Jaeger <aj@suse.de>
Thu, 17 May 2001 08:47:10 +0000 (10:47 +0200)
committerAndreas Jaeger <aj@gcc.gnu.org>
Thu, 17 May 2001 08:47:10 +0000 (10:47 +0200)
* libI77/Makefile.in: Add rules to rebuild config.h.in when
needed.

From-SVN: r42191

libf2c/ChangeLog
libf2c/libI77/Makefile.in

index 5bc46653512861594260baea5016af845c866b06..5e684aa83ef33341ab17e150d5adf3e5908acfe7 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-17  Andreas Jaeger  <aj@suse.de>
+
+       * libI77/Makefile.in: Add rules to rebuild config.h.in when
+       needed.
+
 2001-05-16  Andreas Jaeger  <aj@suse.de>
 
        * libI77/backspace.c: Include "config.h".
index 397474c9911c94f2b20ee1588448fd997d4325d6..01902f03ca641b3d4c6838c65f03b39106309879 100644 (file)
@@ -81,6 +81,17 @@ ${srcdir}/configure: configure.in
        rm -f config.cache
        cd ${srcdir} && autoconf
 
+# autoheader might not change config.h.in, so touch a stamp file.
+${srcdir}/config.h.in: stamp-h.in
+${srcdir}/stamp-h.in: configure.in
+       (cd ${srcdir} && autoheader)
+       @rm -f ${srcdir}/stamp-h.in
+       echo timestamp > ${srcdir}/stamp-h.in
+
+config.h: stamp-h; @true
+stamp-h: config.h.in config.status
+       $(SHELL) config.status
+
 VersionI.o: Version.c
        $(CC) -c $(ALL_CFLAGS) -o $@ $(srcdir)/Version.c