view tests/relay-to-hostname-mta/makefile @ 139:4d32eb75d3bc

/^\\fB/ in man pages indicates an option this allows automated testing if all config options are documented seems like this is just a hack, but it works ... so what?
author meillo@marmaro.de
date Tue, 06 Jul 2010 17:37:18 +0200
parents 49ca781e1503
children
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`\" >$@

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

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