diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-17 18:58:18 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-17 18:58:18 -0400 |
commit | 605dcd5a87e5203fcbb9997f6304dc541e692634 (patch) | |
tree | f1b0688a1ee2299eb18c83b7d486d925fedb873e | |
parent | c0fe88543fa4763cb4d0a47797233d462ff8fb42 (diff) |
Makefile: track variable dependenciesv20160517
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 $< $@ |