summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-17 18:58:18 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-17 18:58:18 -0400
commit605dcd5a87e5203fcbb9997f6304dc541e692634 (patch)
treef1b0688a1ee2299eb18c83b7d486d925fedb873e
parentc0fe88543fa4763cb4d0a47797233d462ff8fb42 (diff)
Makefile: track variable dependenciesv20160517
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bbe0725..26a1f3d 100644
--- a/Makefile
+++ b/Makefile
@@ -49,9 +49,12 @@ am_sys_files = $(targets) $(pkgconffile)
# Pattern rules
-%: %.in
+%: %.in .var.sbindir .var.pkgconffile
sed -e 's|@sbindir@|$(sbindir)|' -e 's|@pkgconffile@|$(pkgconffile)|' < $< > $@
+.var.%: FORCE
+ @printf '%s' '$($*)' | ./write-ifchanged $@
+
$(DESTDIR)$(sbindir)/%: %
install -Dm755 $< $@