diff options
Diffstat (limited to 'substitute.mk')
-rw-r--r-- | substitute.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/substitute.mk b/substitute.mk new file mode 100644 index 000000000000..af3549253ca9 --- /dev/null +++ b/substitute.mk @@ -0,0 +1,8 @@ +%: %.in Makefile + sed \ + -e s^@prefix\@^$(prefix)^g \ + -e s^@bindir\@^$(bindir)^g \ + -e s^@sysconfdir\@^$(sysconfdir)^g \ + -e s^@localstatedir\@^$(localstatedir)^g \ + < $< > $@ || rm $@ + chmod +x $@ |