Makefile.am 619 Bytes
Newer Older
1
2
networkingdir=$(libdir)/$(PACKAGE)/networking

3
dist_networking_SCRIPTS = debian.sh redhat.sh freebsd.sh
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

edit = sed \
           -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
           -e 's|@localstatedir[@]|$(localstatedir)|g' \
           -e 's|@datarootdir[@]|$(datarootdir)|g' \
           -e 's|@commondir[@]|$(commondir)|g' \
           -e 's|@networkingdir[@]|$(networkingdir)|g' \
           -e 's|@scriptsdir[@]|$(scriptsdir)|g'

%:%.in Makefile
	rm -f $@ $@.tmp
	srcdir=''; \
		   test -f ./$@.in || srcdir=$(srcdir)/; \
		   $(edit) $${srcdir}$@.in >$@.tmp
	mv $@.tmp $@

CLEANFILES = $(dist_networking_SCRIPTS)