aboutsummaryrefslogtreecommitdiff
path: root/substitute.mk
blob: af3549253ca9a322c1bde23fb8fef4d5584a623c (plain)
1
2
3
4
5
6
7
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 $@