summaryrefslogtreecommitdiffstats
path: root/build/subst.inc
blob: 99cac7f4f56b4c96dcc8d91be7aac9046e3bfe71 (plain)
1
2
3
4
5
6
7
8
9
10
11
.in:
	if sed \
		-e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
		-e 's#[@]sbindir_POST@#$(sbindir)#g' \
		-e 's#[@]sysconfdir_POST@#$(sysconfdir)#g' \
		$< > $@.tmp; then \
		mv "$@.tmp" "$@"; \
	else \
		rm -f "$@.tmp"; \
		false; \
	fi