From: Alan T. DeKok Date: Tue, 8 Dec 2020 18:49:51 +0000 (-0500) Subject: allow re-building of individual "configure" files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e2543c381df85dfd363a61cc4f41e933b6cdbc;p=thirdparty%2Ffreeradius-server.git allow re-building of individual "configure" files and work around autoconf crap, where it touches the inputs, so that the outputs are almost always out of date. --- diff --git a/Makefile b/Makefile index e7febe99de5..884870987b3 100644 --- a/Makefile +++ b/Makefile @@ -195,6 +195,14 @@ distclean: clean # these rules enabled by default, then they're run too often. # ifeq "$(MAKECMDGOALS)" "reconfig" +CONFIGURE_FILES=1 +endif + +ifneq "$(filter %configure,$(MAKECMDGOALS))" "" +CONFIGURE_FILES=1 +endif + +ifeq "$(CONFIGURE_FILES)" "1" CONFIGURE_AC_FILES := $(shell find . -name configure.ac -print) CONFIGURE_FILES := $(patsubst %.ac,%,$(CONFIGURE_AC_FILES)) @@ -219,6 +227,7 @@ src/%configure: src/%configure.ac acinclude.m4 aclocal.m4 $(wildcard $(dir $@)m4 echo AUTOHEADER $@ \ cd $(dir $@) && $(AUTOHEADER); \ fi + @touch $@ # "%configure" doesn't match "configure" configure: configure.ac $(wildcard ac*.m4) $(wildcard m4/*.m4)