Mercurial > masqmail
comparison Makefile.in @ 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 | b3673777f52a |
comparison
equal
deleted
inserted
replaced
90:d3e39ba684a3 | 91:3e7136221104 |
---|---|
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | 12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
14 # PARTICULAR PURPOSE. | 14 # PARTICULAR PURPOSE. |
15 | 15 |
16 @SET_MAKE@ | 16 @SET_MAKE@ |
17 | |
18 VPATH = @srcdir@ | 17 VPATH = @srcdir@ |
19 pkgdatadir = $(datadir)/@PACKAGE@ | 18 pkgdatadir = $(datadir)/@PACKAGE@ |
20 pkgincludedir = $(includedir)/@PACKAGE@ | 19 pkgincludedir = $(includedir)/@PACKAGE@ |
21 pkglibdir = $(libdir)/@PACKAGE@ | 20 pkglibdir = $(libdir)/@PACKAGE@ |
22 pkglibexecdir = $(libexecdir)/@PACKAGE@ | 21 pkglibexecdir = $(libexecdir)/@PACKAGE@ |
46 configure.lineno config.status.lineno | 45 configure.lineno config.status.lineno |
47 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | 46 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
48 CONFIG_HEADER = config.h | 47 CONFIG_HEADER = config.h |
49 CONFIG_CLEAN_FILES = | 48 CONFIG_CLEAN_FILES = |
50 CONFIG_CLEAN_VPATH_FILES = | 49 CONFIG_CLEAN_VPATH_FILES = |
51 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
52 am__vpath_adj = case $$p in \ | |
53 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
54 *) f=$$p;; \ | |
55 esac; | |
56 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
57 am__install_max = 40 | |
58 am__nobase_strip_setup = \ | |
59 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
60 am__nobase_strip = \ | |
61 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
62 am__nobase_list = $(am__nobase_strip_setup); \ | |
63 for p in $$list; do echo "$$p $$p"; done | \ | |
64 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
65 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
66 if (++n[$$2] == $(am__install_max)) \ | |
67 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
68 END { for (dir in files) print dir, files[dir] }' | |
69 am__base_list = \ | |
70 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
71 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
72 am__installdirs = "$(DESTDIR)$(bindir)" | |
73 SCRIPTS = $(bin_SCRIPTS) | |
74 SOURCES = | 50 SOURCES = |
75 DIST_SOURCES = | 51 DIST_SOURCES = |
76 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | 52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
77 html-recursive info-recursive install-data-recursive \ | 53 html-recursive info-recursive install-data-recursive \ |
78 install-dvi-recursive install-exec-recursive \ | 54 install-dvi-recursive install-exec-recursive \ |
228 with_logdir = @with_logdir@ | 204 with_logdir = @with_logdir@ |
229 with_spooldir = @with_spooldir@ | 205 with_spooldir = @with_spooldir@ |
230 with_user = @with_user@ | 206 with_user = @with_user@ |
231 EXTRA_DIST = examples docs man tpl tests misc | 207 EXTRA_DIST = examples docs man tpl tests misc |
232 SUBDIRS = src man | 208 SUBDIRS = src man |
233 bin_SCRIPTS = contrib/rmail | |
234 all: config.h | 209 all: config.h |
235 $(MAKE) $(AM_MAKEFLAGS) all-recursive | 210 $(MAKE) $(AM_MAKEFLAGS) all-recursive |
236 | 211 |
237 .SUFFIXES: | 212 .SUFFIXES: |
238 am--refresh: | 213 am--refresh: |
284 rm -f stamp-h1 | 259 rm -f stamp-h1 |
285 touch $@ | 260 touch $@ |
286 | 261 |
287 distclean-hdr: | 262 distclean-hdr: |
288 -rm -f config.h stamp-h1 | 263 -rm -f config.h stamp-h1 |
289 install-binSCRIPTS: $(bin_SCRIPTS) | |
290 @$(NORMAL_INSTALL) | |
291 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
292 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ | |
293 for p in $$list; do \ | |
294 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
295 if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ | |
296 done | \ | |
297 sed -e 'p;s,.*/,,;n' \ | |
298 -e 'h;s|.*|.|' \ | |
299 -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ | |
300 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ | |
301 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | |
302 if ($$2 == $$4) { files[d] = files[d] " " $$1; \ | |
303 if (++n[d] == $(am__install_max)) { \ | |
304 print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ | |
305 else { print "f", d "/" $$4, $$1 } } \ | |
306 END { for (d in files) print "f", d, files[d] }' | \ | |
307 while read type dir files; do \ | |
308 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | |
309 test -z "$$files" || { \ | |
310 echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | |
311 $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | |
312 } \ | |
313 ; done | |
314 | |
315 uninstall-binSCRIPTS: | |
316 @$(NORMAL_UNINSTALL) | |
317 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ | |
318 files=`for p in $$list; do echo "$$p"; done | \ | |
319 sed -e 's,.*/,,;$(transform)'`; \ | |
320 test -n "$$list" || exit 0; \ | |
321 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | |
322 cd "$(DESTDIR)$(bindir)" && rm -f $$files | |
323 | 264 |
324 # This directory's subdirectories are mostly independent; you can cd | 265 # This directory's subdirectories are mostly independent; you can cd |
325 # into them and run `make' without going through this Makefile. | 266 # into them and run `make' without going through this Makefile. |
326 # To change the values of `make' variables: instead of editing Makefiles, | 267 # To change the values of `make' variables: instead of editing Makefiles, |
327 # (1) if the variable is set in `config.status', edit `config.status' | 268 # (1) if the variable is set in `config.status', edit `config.status' |
631 || { echo "ERROR: files left in build directory after distclean:" ; \ | 572 || { echo "ERROR: files left in build directory after distclean:" ; \ |
632 $(distcleancheck_listfiles) ; \ | 573 $(distcleancheck_listfiles) ; \ |
633 exit 1; } >&2 | 574 exit 1; } >&2 |
634 check-am: all-am | 575 check-am: all-am |
635 check: check-recursive | 576 check: check-recursive |
636 all-am: Makefile $(SCRIPTS) config.h | 577 all-am: Makefile config.h |
637 installdirs: installdirs-recursive | 578 installdirs: installdirs-recursive |
638 installdirs-am: | 579 installdirs-am: |
639 for dir in "$(DESTDIR)$(bindir)"; do \ | |
640 test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
641 done | |
642 install: install-recursive | 580 install: install-recursive |
643 install-exec: install-exec-recursive | 581 install-exec: install-exec-recursive |
644 install-data: install-data-recursive | 582 install-data: install-data-recursive |
645 uninstall: uninstall-recursive | 583 uninstall: uninstall-recursive |
646 | 584 |
689 | 627 |
690 install-dvi: install-dvi-recursive | 628 install-dvi: install-dvi-recursive |
691 | 629 |
692 install-dvi-am: | 630 install-dvi-am: |
693 | 631 |
694 install-exec-am: install-binSCRIPTS | 632 install-exec-am: |
695 | 633 |
696 install-html: install-html-recursive | 634 install-html: install-html-recursive |
697 | 635 |
698 install-html-am: | 636 install-html-am: |
699 | 637 |
729 | 667 |
730 ps: ps-recursive | 668 ps: ps-recursive |
731 | 669 |
732 ps-am: | 670 ps-am: |
733 | 671 |
734 uninstall-am: uninstall-binSCRIPTS | 672 uninstall-am: uninstall-local |
735 | 673 |
736 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | 674 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ |
737 ctags-recursive install-am install-strip tags-recursive | 675 ctags-recursive install-am install-strip tags-recursive |
738 | 676 |
739 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | 677 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
740 all all-am am--refresh check check-am clean clean-generic \ | 678 all all-am am--refresh check check-am clean clean-generic \ |
741 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | 679 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ |
742 dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ | 680 dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ |
743 distclean distclean-generic distclean-hdr distclean-tags \ | 681 distclean distclean-generic distclean-hdr distclean-tags \ |
744 distcleancheck distdir distuninstallcheck dvi dvi-am html \ | 682 distcleancheck distdir distuninstallcheck dvi dvi-am html \ |
745 html-am info info-am install install-am install-binSCRIPTS \ | 683 html-am info info-am install install-am install-data \ |
746 install-data install-data-am install-data-local install-dvi \ | 684 install-data-am install-data-local install-dvi install-dvi-am \ |
747 install-dvi-am install-exec install-exec-am install-html \ | 685 install-exec install-exec-am install-html install-html-am \ |
748 install-html-am install-info install-info-am install-man \ | 686 install-info install-info-am install-man install-pdf \ |
749 install-pdf install-pdf-am install-ps install-ps-am \ | 687 install-pdf-am install-ps install-ps-am install-strip \ |
750 install-strip installcheck installcheck-am installdirs \ | 688 installcheck installcheck-am installdirs installdirs-am \ |
751 installdirs-am maintainer-clean maintainer-clean-generic \ | 689 maintainer-clean maintainer-clean-generic mostlyclean \ |
752 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ | 690 mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ |
753 tags-recursive uninstall uninstall-am uninstall-binSCRIPTS | 691 uninstall uninstall-am uninstall-local |
754 | 692 |
755 | 693 |
756 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir | 694 #bin_SCRIPTS = contrib/rmail |
695 | |
696 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail | |
697 | |
698 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir | |
699 | |
700 rm-doc_dir: | |
701 cd $(DESTDIR)@docdir@ ;\ | |
702 rm -rf docs examples ;\ | |
703 rm -f ChangeLog NEWS AUTHORS COPYING README TODO | |
704 rmdir $(DESTDIR)@docdir@ | |
705 | |
706 rm-tpl_dir: | |
707 cd $(DESTDIR)@datadir@ ;\ | |
708 rm -rf masqmail | |
757 | 709 |
758 conf_dir: $(DESTDIR)@with_confdir@ | 710 conf_dir: $(DESTDIR)@with_confdir@ |
759 | 711 |
760 $(DESTDIR)@with_confdir@: | 712 $(DESTDIR)@with_confdir@: |
761 install -d $(DESTDIR)@with_confdir@ | 713 install -d $(DESTDIR)@with_confdir@ |
794 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ | 746 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@ |
795 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock | 747 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock |
796 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input | 748 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input |
797 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl | 749 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl |
798 | 750 |
751 rmail: | |
752 [ -d "$(DESTDIR)@prefix@/bin" ] || mkdir -p "$(DESTDIR)@prefix@/bin" | |
753 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ | |
754 contrib/rmail >$(DESTDIR)@prefix@/bin/rmail | |
755 chmod 755 $(DESTDIR)@prefix@/bin/rmail | |
756 | |
757 rm-rmail: | |
758 rm -f $(DESTDIR)@prefix@/bin/rmail | |
759 | |
799 # Tell versions [3.59,3.63) of GNU make to not export all variables. | 760 # Tell versions [3.59,3.63) of GNU make to not export all variables. |
800 # Otherwise a system limit (for SysV at least) may be exceeded. | 761 # Otherwise a system limit (for SysV at least) may be exceeded. |
801 .NOEXPORT: | 762 .NOEXPORT: |