From 182297c10edb21c4856c6a38326fd04d81de41a5 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 5 Sep 2019 20:34:54 +1000 Subject: check that configure/config.h is up to date Ensure they are newer than the configure.ac / aclocal.m4 source --- Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 708778d4..4c0c9e67 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 $@ -- cgit v1.2.3