summaryrefslogtreecommitdiff
path: root/conf/Makefile.am
blob: 1dce407c5580bc002b9f1e6d87325a819bf6adad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## conf/
configdir		= $(sysconfdir)/bitz
config_DATA		= bitz-server.conf

# extra dist files
EXTRA_DIST = \
	bitz-server.conf.in


edit = sed \
	-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
	-e 's|@localstatedir[@]|$(localstatedir)|g' \
	-e 's|@pkglibdir[@]|$(pkglibdir)|g'

bitz-server.conf: bitz-server.conf.in
	rm -f $@ $@.tmp
	srcdir=''; \
		test -f ./$@.in || srcdir=$(srcdir)/; \
		$(edit) $${srcdir}$@.in >$@.tmp
	chmod +r $@.tmp
	chmod og-wx $@.tmp
	mv $@.tmp $@

clean-local:
	rm -f *.conf