Mercurial > masqmail-0.2
annotate Makefile.am @ 170:0f0e4e7cd762
added misc/list-versions
This script helps to check if the versions numbers in the project
are the same as the one for the release. This script is motivated
by the 0.2.27 release in which masqmail introduces itself as being
version 0.2.26.
author | meillo@marmaro.de |
---|---|
date | Mon, 19 Jul 2010 14:01:13 +0200 |
parents | 1db6e1b91ead |
children |
rev | line source |
---|---|
125 | 1 EXTRA_DIST = examples docs man tpl misc |
0 | 2 |
57 | 3 SUBDIRS = src man |
0 | 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 | 6 |
145
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-run_dir rm-spool_dir rm-log_dir |
0 | 8 |
61 | 9 |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
10 conf_dir: |
0 | 11 install -d $(DESTDIR)@with_confdir@ |
12 | |
145
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
13 rm-conf_dir: |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
14 rmdir $(DESTDIR)@with_confdir@ # removes only if empty |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
15 |
61 | 16 |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
17 tpl_dir: |
0 | 18 install -d $(DESTDIR)@datadir@/masqmail/tpl |
61 | 19 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl |
20 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/* | |
0 | 21 |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
22 rm-tpl_dir: |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
23 rm -rf $(DESTDIR)@datadir@/masqmail/ |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
24 |
61 | 25 |
26 doc_dir: | |
58 | 27 install -d $(DESTDIR)@docdir@ |
28 cp -r docs $(DESTDIR)@docdir@ | |
29 cp -r examples $(DESTDIR)@docdir@ | |
30 cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@ | |
31 | |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
32 rm-doc_dir: |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
33 cd $(DESTDIR)@docdir@ && ( \ |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
34 rm -rf docs examples ; \ |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
35 rm -f ChangeLog NEWS AUTHORS COPYING README TODO ; \ |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
36 ) |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
37 rmdir $(DESTDIR)@docdir@ |
0 | 38 |
61 | 39 |
0 | 40 run_dir: |
41 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail | |
42 | |
145
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
43 rm-run_dir: |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
44 rm -rf $(DESTDIR)/var/run/masqmail |
61 | 45 |
46 | |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
47 log_dir: |
0 | 48 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@ |
49 | |
145
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
50 rm-log_dir: |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
51 rmdir $(DESTDIR)@with_logdir@ # removes only if empty |
61 | 52 |
53 | |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
54 spool_dir: |
0 | 55 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ |
56 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock | |
57 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input | |
58 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl | |
59 | |
145
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
60 rm-spool_dir: |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
61 : # removal fails if the dirs are non-empty |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
62 : # this prevents losing spooled files |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
63 rmdir $(DESTDIR)@with_spooldir@/lock |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
64 rmdir $(DESTDIR)@with_spooldir@/input |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
65 rmdir $(DESTDIR)@with_spooldir@/popuidl |
e68d8752735a
remove all installed dirs on `make uninstall'
meillo@marmaro.de
parents:
125
diff
changeset
|
66 rmdir $(DESTDIR)@with_spooldir@ |
91
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
67 |
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
68 rmail: |
148
1db6e1b91ead
moved rmail from bin (man1) to sbin (man8)
meillo@marmaro.de
parents:
147
diff
changeset
|
69 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" |
91
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
70 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ |
148
1db6e1b91ead
moved rmail from bin (man1) to sbin (man8)
meillo@marmaro.de
parents:
147
diff
changeset
|
71 contrib/rmail >$(DESTDIR)@prefix@/sbin/rmail |
1db6e1b91ead
moved rmail from bin (man1) to sbin (man8)
meillo@marmaro.de
parents:
147
diff
changeset
|
72 chmod 755 $(DESTDIR)@prefix@/sbin/rmail |
91
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
73 |
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
74 rm-rmail: |
148
1db6e1b91ead
moved rmail from bin (man1) to sbin (man8)
meillo@marmaro.de
parents:
147
diff
changeset
|
75 rm -f $(DESTDIR)@prefix@/sbin/rmail |
91
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
76 |
3e7136221104
correct masqmail path in rmail script; remove docs on uninstall
meillo@marmaro.de
parents:
86
diff
changeset
|
77 |
147
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
78 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail |
cb42157b3520
improved the Makefile (check diff for details)
meillo@marmaro.de
parents:
146
diff
changeset
|
79 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail |