6
|
1 # Makefile by markus schnalke <meillo@marmaro.de>
|
|
2 # heavily based on Makefile.am written by oliver kurth
|
|
3
|
|
4 all: test.conf local.sh smtpout.sh
|
46
|
5 mkdir -p ./input ./lock
|
6
|
6
|
|
7 test.conf: conf.templ
|
46
|
8 # fails if the current path contains `^'.
|
|
9 sed "s/SMTP_HOST/`hostname`/; s^PWD^`pwd`^" conf.templ > test.conf
|
6
|
10
|
|
11 local.sh: test.templ
|
|
12 sed s/RECV_HOST/localhost/ test.templ > local.sh
|
|
13 chmod ugo+x local.sh
|
|
14
|
|
15 smtpout.sh: test.templ
|
|
16 sed s/RECV_HOST/`hostname`/ test.templ > smtpout.sh
|
|
17 chmod ugo+x smtpout.sh
|
|
18
|
|
19 clean:
|
|
20 rm -f test.conf local.sh smtpout.sh
|
46
|
21 rm -rf ./input ./lock
|