* libI77/Makefile.in: Add rules to rebuild config.h.in when
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 May 2001 08:47:10 +0000 (08:47 +0000)
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 May 2001 08:47:10 +0000 (08:47 +0000)
needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42191 138bc75d-0d04-0410-961f-82ee72b054a4

libf2c/ChangeLog
libf2c/libI77/Makefile.in

index 5bc4665..5e684aa 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 397474c..01902f0 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