'configure' apparently doesn't bump the timestamp on config.h if it
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 29 Mar 2011 18:01:42 +0000 (18:01 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 29 Mar 2011 18:01:42 +0000 (18:01 +0000)
didn't have to change it. Useful if you're constantly re-running
configure and want not to have to keep remaking everything, but when I
run configure _from_ my master makefile, it cuts the other way and I
want to avoid having the Makefile rerun configure every time. So
manually touch config.h after a successful run of configure.

git-svn-id: svn://svn.tartarus.org/sgt/agedu@9134 cda61777-01e9-0310-a592-d414129be87e

GNUmakefile

index e4ebc99..30e061b 100644 (file)
@@ -26,7 +26,7 @@ agedu: config.h $(AGEDU_OBJS)
        gcc $(LFLAGS) -o agedu $(AGEDU_OBJS)
 
 config.h: configure
-       ./configure -q
+       ./configure -q && touch config.h
        rm -f Makefile # we keep using _this_ Makefile
 
 configure: configure.ac