masqmail-0.2

view Makefile.am @ 61:bdef5f279fde

refactoring in Makefile.am
author meillo@marmaro.de
date Sat, 29 May 2010 23:43:32 +0200
parents 6ab62592cac4
children 610cd4e09b91
line source
1 EXTRA_DIST = examples/* docs/* man/* tpl/*
3 SUBDIRS = src man
5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir
8 conf_dir: $(DESTDIR)@with_confdir@
10 $(DESTDIR)@with_confdir@:
11 install -d $(DESTDIR)@with_confdir@
14 tpl_dir: $(DESTDIR)@datadir@/tpl
16 $(DESTDIR)@datadir@/tpl: conf_dir
17 install -d $(DESTDIR)@datadir@/masqmail/tpl
18 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
19 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
22 doc_dir:
23 install -d $(DESTDIR)@docdir@
24 cp -r docs $(DESTDIR)@docdir@
25 cp -r examples $(DESTDIR)@docdir@
26 cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
29 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
30 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail
33 run_dir:
34 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
38 log_dir: $(DESTDIR)@with_logdir@
40 $(DESTDIR)@with_logdir@:
41 [ -d `dirname $(DESTDIR)@with_logdir@` ] || \
42 install -d `dirname $(DESTDIR)@with_logdir@`
43 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
47 spool_dir: $(DESTDIR)@with_spooldir@
49 $(DESTDIR)@with_spooldir@:
50 [ -d `dirname $(DESTDIR)@with_spooldir@` ] || \
51 install -d `dirname $(DESTDIR)@with_spooldir@`
52 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
53 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock
54 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
55 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl