summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-09-05 20:34:54 +1000
committerDamien Miller <djm@mindrot.org>2019-09-05 20:35:33 +1000
commit182297c10edb21c4856c6a38326fd04d81de41a5 (patch)
treece5d7f93aafc57083f55baa9ef361f8cbe3da54d /Makefile.in
parent7d6034bd020248e9fc0f8c39c71c858debd0d0c1 (diff)
check that configure/config.h is up to date
Ensure they are newer than the configure.ac / aclocal.m4 source
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in7
1 files changed, 6 insertions, 1 deletions
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 $@