annotate Makefile.am @ 91:3e7136221104

correct masqmail path in rmail script; remove docs on uninstall on install the correct path to the masqmail executable gets inserted into the rmail script now. now documentation, examples, and the templates are removed on uninstall. Empty directories are the only thing that may remain if one installs masqmail into an unusual path.
author meillo@marmaro.de
date Mon, 21 Jun 2010 09:40:16 +0200
parents 92673a185add
children 6eec8bcfd320
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
62
610cd4e09b91 better EXTRA_DIST value
meillo@marmaro.de
parents: 61
diff changeset
1 EXTRA_DIST = examples docs man tpl tests misc
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
2
57
ed34413652fc moved man pages from docs/ to man/
meillo@marmaro.de
parents: 55
diff changeset
3 SUBDIRS = src man
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
4
91
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail
86
92673a185add added rmail script from postfix
meillo@marmaro.de
parents: 62
diff changeset
6
91
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
8
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
9
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
10 conf_dir: $(DESTDIR)@with_confdir@
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
11
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
12 $(DESTDIR)@with_confdir@:
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
13 install -d $(DESTDIR)@with_confdir@
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
14
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
15
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
16 tpl_dir: $(DESTDIR)@datadir@/tpl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
17
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
18 $(DESTDIR)@datadir@/tpl: conf_dir
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
19 install -d $(DESTDIR)@datadir@/masqmail/tpl
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
20 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
21 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
22
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
23
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
24 doc_dir:
58
6ab62592cac4 install docs and examples too
meillo@marmaro.de
parents: 57
diff changeset
25 install -d $(DESTDIR)@docdir@
6ab62592cac4 install docs and examples too
meillo@marmaro.de
parents: 57
diff changeset
26 cp -r docs $(DESTDIR)@docdir@
6ab62592cac4 install docs and examples too
meillo@marmaro.de
parents: 57
diff changeset
27 cp -r examples $(DESTDIR)@docdir@
6ab62592cac4 install docs and examples too
meillo@marmaro.de
parents: 57
diff changeset
28 cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
6ab62592cac4 install docs and examples too
meillo@marmaro.de
parents: 57
diff changeset
29
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
30
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
31 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
32 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
33
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
34
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
35 run_dir:
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
36 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
37
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
38
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
39
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
40 log_dir: $(DESTDIR)@with_logdir@
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
41
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
42 $(DESTDIR)@with_logdir@:
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
43 [ -d `dirname $(DESTDIR)@with_logdir@` ] || \
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
44 install -d `dirname $(DESTDIR)@with_logdir@`
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
45 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
46
61
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
47
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
48
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
49 spool_dir: $(DESTDIR)@with_spooldir@
bdef5f279fde refactoring in Makefile.am
meillo@marmaro.de
parents: 58
diff changeset
50
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
51 $(DESTDIR)@with_spooldir@:
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
52 [ -d `dirname $(DESTDIR)@with_spooldir@` ] || \
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
53 install -d `dirname $(DESTDIR)@with_spooldir@`
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
54 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
55 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
56 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
57 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
58
91
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
59
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
60 rmail:
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
61 [ -d "$(DESTDIR)@prefix@/bin" ] || mkdir -p "$(DESTDIR)@prefix@/bin"
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
62 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
63 contrib/rmail >$(DESTDIR)@prefix@/bin/rmail
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
64 chmod 755 $(DESTDIR)@prefix@/bin/rmail
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
65
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
66 rm-rmail:
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
67 rm -f $(DESTDIR)@prefix@/bin/rmail
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
68
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
69 rm-doc_dir:
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
70 cd $(DESTDIR)@docdir@ ;\
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
71 rm -rf docs examples ;\
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
72 rm -f ChangeLog NEWS AUTHORS COPYING README TODO
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
73 rmdir $(DESTDIR)@docdir@
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
74
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
75 rm-tpl_dir:
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
76 cd $(DESTDIR)@datadir@ ;\
3e7136221104 correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents: 86
diff changeset
77 rm -rf masqmail