comparison Makefile.am @ 112:96b2eb7f25f5

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 16:56:38 -0800
parents d0dad5610980
children 0094678a16d0
comparison
equal deleted inserted replaced
111:d0dad5610980 112:96b2eb7f25f5
1 SUBDIRS = src man html info 1 SUBDIRS = src man html info
2 hackdir = $(sysconfdir) 2 hackdir = $(sysconfdir)/dnsbl
3 hack_SCRIPTS = dnsbl 3 hack_SCRIPTS = dnsbl
4 dconfdir = $(sysconfdir)/dnsbl 4 hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf
5 dconf_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf
6 CLEANFILES = dnsbl xml/dnsbl xml/Makefile 5 CLEANFILES = dnsbl xml/dnsbl xml/Makefile
7 EXTRA_DIST = dnsbl.rc $(dconf_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*) 6 EXTRA_DIST = dnsbl.rc $(hack_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/d*)
8 7
9 dnsbl: $(srcdir)/dnsbl.rc 8 dnsbl: $(srcdir)/dnsbl.rc
10 rm -f dnsbl 9 rm -f dnsbl
11 echo "#!" $(BASH) >dnsbl 10 echo "#!" $(BASH) >dnsbl
12 cat $(srcdir)/dnsbl.rc | \ 11 cat $(srcdir)/dnsbl.rc | \
13 sed -e "s,SBINDIR,$(sbindir),g" | \ 12 sed -e "s,SBINDIR,$(sbindir),g" | \
14 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl 13 sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl
15 14
16 chkconfig: dnsbl 15 chkconfig: dnsbl
17 mv -f $(sysconfdir)/dnsbl /etc/rc.d/init.d 16 mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
18 /sbin/chkconfig --del dnsbl 17 /sbin/chkconfig --del dnsbl
19 /sbin/chkconfig --add dnsbl 18 /sbin/chkconfig --add dnsbl
20 19