masqmail-0.2

annotate Makefile.am @ 58:6ab62592cac4

install docs and examples too
author meillo@marmaro.de
date Sat, 29 May 2010 22:33:10 +0200
parents ed34413652fc
children bdef5f279fde
rev   line source
meillo@0 1 EXTRA_DIST = \
meillo@57 2 examples/* docs/* man/* tpl/* \
meillo@0 3 INSTALL.agenda INSTALL.ipaq agenda-config.site
meillo@0 4
meillo@57 5 SUBDIRS = src man
meillo@0 6
meillo@58 7 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir
meillo@0 8
meillo@0 9 conf_dir: $(DESTDIR)@with_confdir@
meillo@0 10
meillo@0 11 $(DESTDIR)@with_confdir@:
meillo@0 12 install -d $(DESTDIR)@with_confdir@
meillo@0 13
meillo@0 14 tpl_dir: $(DESTDIR)@datadir@/tpl
meillo@0 15
meillo@0 16 $(DESTDIR)@datadir@/tpl: conf_dir
meillo@0 17 install -d $(DESTDIR)@datadir@/masqmail/tpl
meillo@0 18 install -m 644 tpl/failmsg.tpl $(DESTDIR)@datadir@/masqmail/tpl
meillo@1 19 install -m 644 tpl/failmsg.tpl.* $(DESTDIR)@datadir@/masqmail/tpl
meillo@0 20 install -m 644 tpl/warnmsg.tpl $(DESTDIR)@datadir@/masqmail/tpl
meillo@1 21 install -m 644 tpl/warnmsg.tpl.* $(DESTDIR)@datadir@/masqmail/tpl
meillo@0 22
meillo@58 23 doc_dir: conf_dir
meillo@58 24 install -d $(DESTDIR)@docdir@
meillo@58 25 cp -r docs $(DESTDIR)@docdir@
meillo@58 26 cp -r examples $(DESTDIR)@docdir@
meillo@58 27 cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
meillo@58 28
meillo@0 29 log_dir: $(DESTDIR)@with_logdir@
meillo@0 30
meillo@0 31 spool_dir: $(DESTDIR)@with_spooldir@
meillo@0 32
meillo@0 33 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
meillo@0 34 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail
meillo@0 35
meillo@0 36 run_dir:
meillo@0 37 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
meillo@0 38
meillo@0 39 $(DESTDIR)@with_logdir@:
meillo@0 40 [ -d `dirname $(DESTDIR)@with_logdir@` ] || \
meillo@0 41 install -d `dirname $(DESTDIR)@with_logdir@`
meillo@0 42 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
meillo@0 43
meillo@0 44 $(DESTDIR)@with_spooldir@:
meillo@0 45 [ -d `dirname $(DESTDIR)@with_spooldir@` ] || \
meillo@0 46 install -d `dirname $(DESTDIR)@with_spooldir@`
meillo@0 47 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
meillo@0 48 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock
meillo@0 49 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
meillo@0 50 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl
meillo@0 51