view tests/relay-to-hostname-mta/makefile @ 187:bd7c52a36b0c

improved mservdetect in various ways errors are handled better (no segfaults anymore) copied the relevant part of interface.c into mservdetect.c described how I think the mserver protocol works
author meillo@marmaro.de
date Thu, 15 Jul 2010 00:14:26 +0200 (2010-07-14)
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