]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow re-building of individual "configure" files
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Dec 2020 18:49:51 +0000 (13:49 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Dec 2020 18:51:23 +0000 (13:51 -0500)
and work around autoconf crap, where it touches the inputs,
so that the outputs are almost always out of date.

Makefile

index e7febe99de596111da1a3866b4f2bed780a99e2d..884870987b38d0f39de870ebc0dcd35a29952710 100644 (file)
--- 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)