view tests/hostname-stdin/makefile @ 423:196dfb2a3056

Updated tests to the changes on spool dir.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 10:38:29 +0200
parents 60bb2dbe2866
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
	mkdir -p spool

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

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

clean:
	rm -f test.conf test

realclean: clean
	rm -rf spool
	rm -f *.log $(LOGNAME)