view Makefile.am @ 111:d0dad5610980

move to autoconf/automake/docbook
author carl
date Sun, 18 Dec 2005 15:16:25 -0800
parents 1c7677042b78
children 96b2eb7f25f5
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/d*)

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