summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-06 19:31:38 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-06 19:31:38 -0400
commit7e231e18693f43a3fff32b871402d1e7eb4fa46e (patch)
tree4cc2fabb98630c6a378a161c2206105c2e5a5844 /build-aux
parentcbb39fd58981f2054581ccf186148f24e1201cc4 (diff)
stuff
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/Makefile.once.tail/20-systemd.mk21
1 files changed, 12 insertions, 9 deletions
diff --git a/build-aux/Makefile.once.tail/20-systemd.mk b/build-aux/Makefile.once.tail/20-systemd.mk
index b48af97948..506e688a87 100644
--- a/build-aux/Makefile.once.tail/20-systemd.mk
+++ b/build-aux/Makefile.once.tail/20-systemd.mk
@@ -23,19 +23,22 @@
$(topsrcdir)/configure: $(topsrcdir)/configure.ac
cd $(topsrcdir) && ./autogen.sh
- test -f $@
- touch $@
-$(topoutdir)/config.status: $(topsrcdir)/configure
+
+config_files = config.mk automake.mk autoconf.mk gnustandards.mk po/Makefile.in
+config_headers = config.h
+config_commands = depfiles libtool po/stamp-it
+$(addprefix $(topoutdir)/,config.status $(config_files) $(config_headers)): $(topoutdir)/%: $(topoutdir)/%.stamp
+$(topoutdir)/config.status.stamp: $(topsrcdir)/configure
cd $(topoutdir) && ./config.status --recheck
- test -f $@
+ @test -f $(topoutdir)/$*
touch $@
-$(addprefix $(topoutdir)/,config.mk automake.mk autoconf.mk gnustandards.mk po/Makefile.in): $(topoutdir)/%: $(topoutdir)/config.status $(topsrcdir)/%.in
+$(foreach f,$(config_files),$(topoutdir)/$f.stamp): $(topoutdir)/%.stamp: $(topoutdir)/config.status $(topsrcdir)/%.in
cd $(topoutdir) && ./config.status --file=$*
- test -f $@
+ @test -f $(topoutdir)/$*
touch $@
-$(addprefix $(topoutdir)/,config.h): $(topoutdir)/%: $(topoutdir)/config.status $(topsrcdir)/%.in
- cd $(topoutdir) && ./config.status --header=$* || touch
- test -f $@
+$(foreach f,$(config_headers),$(topoutdir)/$f.stamp): $(topoutdir)/%.stamp: $(topoutdir)/config.status $(topsrcdir)/%.in
+ cd $(topoutdir) && ./config.status --header=$*
+ @test -f $(topoutdir)/$*
touch $@
# Let's run all tests of the test suite, but under valgrind. Let's