about summary refs log tree commit diff
path: root/substitute.mk
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-20T19·29+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-20T19·29+0000
commit6f1a0f948dc5a98f2efcdafb0fdde96bebbf90da (patch)
treeb25798966aefa5ca7d883ced33a19d3d754e1392 /substitute.mk
parentab350eafd2c1a98ea98090fdb3bd9b7ae4f7336b (diff)
* Refactorings.
Diffstat (limited to 'substitute.mk')
-rw-r--r--substitute.mk8
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 $@