view Makefile.am @ 110:75c10deb3fe9

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 15:16:25 -0800
parents 1c7677042b78
children d0dad5610980
line wrap: on
line source

SUBDIRS = src man html info
hackdir = $(sysconfdir)
hack_SCRIPTS = dnsbl
dconfdir = $(sysconfdir)/dnsbl
dconf_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf
CLEANFILES = dnsbl xml/dnsbl xml/Makefile
EXTRA_DIST = dnsbl.rc $(dconf_DATA) dnsbl.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*)

dnsbl: $(srcdir)/dnsbl.rc
	   rm -f dnsbl
	   echo "#!" $(BASH) >dnsbl
	   cat $(srcdir)/dnsbl.rc     | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl

chkconfig: dnsbl
	   mv -f $(sysconfdir)/dnsbl /etc/rc.d/init.d
	   /sbin/chkconfig --del dnsbl
	   /sbin/chkconfig --add dnsbl