view Makefile.am @ 113:a893afee4b80 stable-5-11

move to autoconf/automake/docbook
author carl
date Tue, 20 Dec 2005 17:35:16 -0800
parents 96b2eb7f25f5
children 0094678a16d0
line wrap: on
line source

SUBDIRS = src man html info
hackdir = $(sysconfdir)/dnsbl
hack_SCRIPTS = dnsbl
hack_DATA = dnsbl.conf hosts-ignore.conf html-tags.conf tld.conf
CLEANFILES = dnsbl xml/dnsbl xml/Makefile
EXTRA_DIST = dnsbl.rc $(hack_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/dnsbl /etc/rc.d/init.d
	   /sbin/chkconfig --del dnsbl
	   /sbin/chkconfig --add dnsbl