# $Id: Makefile,v 1.8 2007/04/27 09:40:11 mj Exp $ # Makefile for The DNS Sleuth # (c) 1999--2007 Martin Mares CONF_PREFIX=/etc PREFIX=/usr VERSION=1.4.3 all: clean: rm -f `find . -name "*~" -o -name "*.[oa]" -o -name "\#*\#" -o -name TAGS -o -name core` install: all install -m 644 sleuth.conf $(CONF_PREFIX)/ install -m 755 sleuth $(PREFIX)/bin release: sed "s/\\(, version \\).*\./\\1$(VERSION)$(SUFFIX)./" README.new mv README.new README REL=sleuth-$(VERSION) dist: clean [ ! -d /tmp/$(REL) ] || rm -rf /tmp/$(REL) cp -a . /tmp/$(REL) rm -rf `find /tmp/$(REL) -name CVS -o -name tmp` for a in /tmp/$(REL)/{sleuth.conf,check.conf} ; do \ sed 's/^use lib /#use lib /' <$$a >$$a.new ; \ mv $$a.new $$a ; \ done cd /tmp && tar czvvf $(REL).tar.gz $(REL) .PHONY: all clean install dist release