view tests/relay-to-hostname-mta/makefile @ 418:4cbaf6d6793f

Changed the location of the route query file in the docs. /var/run is for pid files only.
author markus schnalke <meillo@marmaro.de>
date Tue, 29 May 2012 21:33:49 +0200 (2012-05-29)
parents 08932c629849
children 196dfb2a3056
line wrap: on
line source
# Makefile by markus schnalke <meillo@marmaro.de>
# heavily based on Makefile.am written by oliver kurth

all: test test.conf test.route
	mkdir -p ./input ./lock

test.conf: test.conf.tpl
	# fails if the current path contains `^'.
	sed "s^PWD^`pwd`^" $< >$@

test: test.tpl
	sed s/RECV_HOST/`hostname`/ $< >$@
	chmod +x $@

test.route:
	echo mail_host=\"`hostname`\" >$@
	echo "resolve_list = byname" >>$@

clean:
	rm -f test.conf test test.route

realclean: clean
	rm -rf ./input ./lock
	rm -f *.log