summaryrefslogtreecommitdiffstats
path: root/build/subst.inc
blob: 8f9ac055189cd99a897afdb9baa2bfb087e3bd00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.in:
	if sed \
		-e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
		-e 's#[@]sbindir_POST@#$(sbindir)#g' \
		-e 's#[@]sysconfdir_POST@#$(sysconfdir)#g' \
		-e 's#[@]pythondir_POST@#$(pythondir)#g' \
		-e 's#[@]configdir_POST@#$(configdir)#g' \
		-e 's#[@]libconfigdir_POST@#$(libconfigdir)#g' \
		-e 's#[@]cachedir_POST@#$(cachedir)#g' \
		$< > $@.tmp; then \
		mv "$@.tmp" "$@"; \
	else \
		rm -f "$@.tmp"; \
		false; \
	fi