view tests/relay-to-hostname-mta/makefile @ 340:60bb2dbe2866 0.3.3

In the tests: replaced logname(1) with $LOGNAME Because logname(1) may not work if it has no controlling terminal. See: http://aplawrence.com/cgi-bin/printer.pl?arg=/Forum/TonyLawrence8.html Be it that reason or not, it didn't work on Crux, but $LOGNAME is set.
author markus schnalke <meillo@marmaro.de>
date Wed, 31 Aug 2011 09:14:38 +0200 (2011-08-31)
parents 49ca781e1503
children 08932c629849
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