]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
extend autoconf freshness test
authorDamien Miller <djm@mindrot.org>
Thu, 5 Sep 2019 10:54:39 +0000 (20:54 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 5 Sep 2019 10:54:39 +0000 (20:54 +1000)
make it cover config.h.in and config.h separately

Makefile.in

index 4c0c9e67e9d3e4de2cb984cbbe7ef93ad3c2f9fa..de7757f931ba15b3260474454ce2eec774014aec 100644 (file)
@@ -156,10 +156,14 @@ all: configure-check $(CONFIGFILES) $(MANPAGES) $(TARGETS)
 $(LIBSSH_OBJS): Makefile.in config.h
 $(SSHOBJS): Makefile.in config.h
 $(SSHDOBJS): Makefile.in config.h
-configure-check: configure config.h
+configure-check: configure config.h.in config.h
 
-configure config.h: configure.ac aclocal.m4
-       @echo "ERROR: configure/config.h is out of date; please run ${AUTORECONF} and configure" 1>&2
+configure config.h.in: configure.ac aclocal.m4
+       @echo "ERROR: configure or config.h.in are out of date; please run ${AUTORECONF} (and configure)" 1>&2
+       @exit 1
+
+config.h: config.h.in configure
+       @echo "ERROR: config.h is out of date; please run configure" 1>&2
        @exit 1
 
 .c.o: