]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
check that configure/config.h is up to date
authorDamien Miller <djm@mindrot.org>
Thu, 5 Sep 2019 10:34:54 +0000 (20:34 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 5 Sep 2019 10:35:33 +0000 (20:35 +1000)
Ensure they are newer than the configure.ac / aclocal.m4 source

Makefile.in

index 708778d479ce04f3244fd73d9b7881fefbe50e26..4c0c9e67e9d3e4de2cb984cbbe7ef93ad3c2f9fa 100644 (file)
@@ -151,11 +151,16 @@ FIXPATHSCMD       = $(SED) $(PATHSUBS)
 FIXALGORITHMSCMD= $(SHELL) $(srcdir)/fixalgorithms $(SED) \
                     @UNSUPPORTED_ALGORITHMS@
 
-all: $(CONFIGFILES) $(MANPAGES) $(TARGETS)
+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 config.h: configure.ac aclocal.m4
+       @echo "ERROR: configure/config.h is out of date; please run ${AUTORECONF} and configure" 1>&2
+       @exit 1
 
 .c.o:
        $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@