summaryrefslogtreecommitdiff
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
parent7d6034bd020248e9fc0f8c39c71c858debd0d0c1 (diff)
check that configure/config.h is up to date
Ensure they are newer than the configure.ac / aclocal.m4 source
-rw-r--r--Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 708778d47..4c0c9e67e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -151,11 +151,16 @@ FIXPATHSCMD = $(SED) $(PATHSUBS)
151FIXALGORITHMSCMD= $(SHELL) $(srcdir)/fixalgorithms $(SED) \ 151FIXALGORITHMSCMD= $(SHELL) $(srcdir)/fixalgorithms $(SED) \
152 @UNSUPPORTED_ALGORITHMS@ 152 @UNSUPPORTED_ALGORITHMS@
153 153
154all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) 154all: configure-check $(CONFIGFILES) $(MANPAGES) $(TARGETS)
155 155
156$(LIBSSH_OBJS): Makefile.in config.h 156$(LIBSSH_OBJS): Makefile.in config.h
157$(SSHOBJS): Makefile.in config.h 157$(SSHOBJS): Makefile.in config.h
158$(SSHDOBJS): Makefile.in config.h 158$(SSHDOBJS): Makefile.in config.h
159configure-check: configure config.h
160
161configure config.h: configure.ac aclocal.m4
162 @echo "ERROR: configure/config.h is out of date; please run ${AUTORECONF} and configure" 1>&2
163 @exit 1
159 164
160.c.o: 165.c.o:
161 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ 166 $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@