summaryrefslogtreecommitdiffstats
path: root/build/subst.inc
blob: af97623340b6294bfa00f9a8ee927b784aafd895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.in:
	if sed \
		-e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
		-e 's#[@]sbindir_POST@#$(sbindir)#g' \
		-e 's#[@]pluginsdir_POST@#$(pluginsdir)#g' \
		-e 's#[@]configdir_POST@#$(configdir)#g' \
		-e 's#[@]libconfigdir_POST@#$(libconfigdir)#g' \
		-e 's#[@]pkglibexecdir_POST@#$(pkglibexecdir)#g' \
		-e 's#[@]cachedir_POST@#$(cachedir)#g' \
		-e 's#[@]registrydir_POST@#$(registrydir)#g' \
		-e 's#[@]varlibdir_POST@#$(varlibdir)#g' \
		-e 's#[@]webdir_POST@#$(webdir)#g' \
		-e 's#[@]can_enable_aclk_POST@#$(can_enable_aclk)#g' \
		-e 's#[@]enable_cloud_POST@#$(enable_cloud)#g' \
		$< > $@.tmp; then \
		mv "$@.tmp" "$@"; \
	else \
		rm -f "$@.tmp"; \
		false; \
	fi