masqmail-0.2

changeset 61:bdef5f279fde

refactoring in Makefile.am
author meillo@marmaro.de
date Sat, 29 May 2010 23:43:32 +0200
parents e119cee8d493
children 610cd4e09b91
files Makefile.am Makefile.in
diffstat 2 files changed, 24 insertions(+), 24 deletions(-) [+]
line diff
     1.1 --- a/Makefile.am	Sat May 29 22:57:17 2010 +0200
     1.2 +++ b/Makefile.am	Sat May 29 23:43:32 2010 +0200
     1.3 @@ -1,46 +1,51 @@
     1.4 -EXTRA_DIST = \
     1.5 -examples/* docs/* man/* tpl/* \
     1.6 -INSTALL.agenda INSTALL.ipaq agenda-config.site
     1.7 +EXTRA_DIST = examples/* docs/* man/* tpl/*
     1.8  
     1.9  SUBDIRS = src man
    1.10  
    1.11  install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir
    1.12  
    1.13 +
    1.14  conf_dir: $(DESTDIR)@with_confdir@
    1.15  
    1.16  $(DESTDIR)@with_confdir@:
    1.17  	install -d $(DESTDIR)@with_confdir@
    1.18  
    1.19 +
    1.20  tpl_dir: $(DESTDIR)@datadir@/tpl
    1.21  
    1.22  $(DESTDIR)@datadir@/tpl: conf_dir
    1.23  	install -d $(DESTDIR)@datadir@/masqmail/tpl
    1.24 -	install -m 644 tpl/failmsg.tpl $(DESTDIR)@datadir@/masqmail/tpl
    1.25 -	install -m 644 tpl/failmsg.tpl.* $(DESTDIR)@datadir@/masqmail/tpl
    1.26 -	install -m 644 tpl/warnmsg.tpl $(DESTDIR)@datadir@/masqmail/tpl
    1.27 -	install -m 644 tpl/warnmsg.tpl.* $(DESTDIR)@datadir@/masqmail/tpl
    1.28 +	cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
    1.29 +	chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
    1.30  
    1.31 -doc_dir: conf_dir
    1.32 +
    1.33 +doc_dir:
    1.34  	install -d $(DESTDIR)@docdir@
    1.35  	cp -r docs $(DESTDIR)@docdir@
    1.36  	cp -r examples $(DESTDIR)@docdir@
    1.37  	cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
    1.38  
    1.39 -log_dir: $(DESTDIR)@with_logdir@
    1.40 -
    1.41 -spool_dir: $(DESTDIR)@with_spooldir@
    1.42  
    1.43  uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
    1.44  	chmod u+s $(DESTDIR)@prefix@/sbin/masqmail
    1.45  
    1.46 +
    1.47  run_dir:
    1.48  	install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
    1.49  
    1.50 +
    1.51 +
    1.52 +log_dir: $(DESTDIR)@with_logdir@
    1.53 +
    1.54  $(DESTDIR)@with_logdir@:
    1.55  	[ -d `dirname $(DESTDIR)@with_logdir@` ] || \
    1.56  		install -d `dirname $(DESTDIR)@with_logdir@`
    1.57  	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
    1.58  
    1.59 +
    1.60 +
    1.61 +spool_dir: $(DESTDIR)@with_spooldir@
    1.62 +
    1.63  $(DESTDIR)@with_spooldir@:
    1.64  	[ -d `dirname $(DESTDIR)@with_spooldir@` ] || \
    1.65  		install -d `dirname $(DESTDIR)@with_spooldir@`
     2.1 --- a/Makefile.in	Sat May 29 22:57:17 2010 +0200
     2.2 +++ b/Makefile.in	Sat May 29 23:43:32 2010 +0200
     2.3 @@ -204,10 +204,7 @@
     2.4  with_logdir = @with_logdir@
     2.5  with_spooldir = @with_spooldir@
     2.6  with_user = @with_user@
     2.7 -EXTRA_DIST = \
     2.8 -examples/* docs/* man/* tpl/* \
     2.9 -INSTALL.agenda INSTALL.ipaq agenda-config.site
    2.10 -
    2.11 +EXTRA_DIST = examples/* docs/* man/* tpl/*
    2.12  SUBDIRS = src man
    2.13  all: config.h
    2.14  	$(MAKE) $(AM_MAKEFLAGS) all-recursive
    2.15 @@ -705,32 +702,30 @@
    2.16  
    2.17  $(DESTDIR)@datadir@/tpl: conf_dir
    2.18  	install -d $(DESTDIR)@datadir@/masqmail/tpl
    2.19 -	install -m 644 tpl/failmsg.tpl $(DESTDIR)@datadir@/masqmail/tpl
    2.20 -	install -m 644 tpl/failmsg.tpl.* $(DESTDIR)@datadir@/masqmail/tpl
    2.21 -	install -m 644 tpl/warnmsg.tpl $(DESTDIR)@datadir@/masqmail/tpl
    2.22 -	install -m 644 tpl/warnmsg.tpl.* $(DESTDIR)@datadir@/masqmail/tpl
    2.23 +	cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
    2.24 +	chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
    2.25  
    2.26 -doc_dir: conf_dir
    2.27 +doc_dir:
    2.28  	install -d $(DESTDIR)@docdir@
    2.29  	cp -r docs $(DESTDIR)@docdir@
    2.30  	cp -r examples $(DESTDIR)@docdir@
    2.31  	cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
    2.32  
    2.33 -log_dir: $(DESTDIR)@with_logdir@
    2.34 -
    2.35 -spool_dir: $(DESTDIR)@with_spooldir@
    2.36 -
    2.37  uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
    2.38  	chmod u+s $(DESTDIR)@prefix@/sbin/masqmail
    2.39  
    2.40  run_dir:
    2.41  	install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
    2.42  
    2.43 +log_dir: $(DESTDIR)@with_logdir@
    2.44 +
    2.45  $(DESTDIR)@with_logdir@:
    2.46  	[ -d `dirname $(DESTDIR)@with_logdir@` ] || \
    2.47  		install -d `dirname $(DESTDIR)@with_logdir@`
    2.48  	install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
    2.49  
    2.50 +spool_dir: $(DESTDIR)@with_spooldir@
    2.51 +
    2.52  $(DESTDIR)@with_spooldir@:
    2.53  	[ -d `dirname $(DESTDIR)@with_spooldir@` ] || \
    2.54  		install -d `dirname $(DESTDIR)@with_spooldir@`