X-Git-Url: http://id.pley.net/postfix.git/blobdiff_plain/31e372270f7e1eb7a6c16e0d803a06189b42fb9e..72de8b29cf41c62a473d99788e18771c3a9aa446:/Makefile diff --git a/Makefile b/Makefile index 840494b..3e55dfa 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,24 @@ -SRC := $(shell pwd) DST := /etc/postfix -INPUTS := main.cf Makefile master.cf mysql/* postgrey_whitelist_clients.local postgrey_whitelist_recipients rbl_override +INPUTS := \ + configuration/main.cf \ + configuration/master.cf \ + configuration/postgrey_whitelist_clients.local \ + configuration/postgrey_whitelist_recipients \ + configuration/rbl_override \ + configuration/mysql/relay_domains.cf \ + configuration/mysql/virtual_alias_maps.cf \ + configuration/mysql/virtual_domains_maps.cf \ + configuration/mysql/virtual_mailbox_limits.cf \ + configuration/mysql/virtual_mailbox_maps.cf -all: $(INPUTS:%=$(DST)/%) +OUTPUTS := $(subst configuration/,$(DST)/,$(INPUTS)) -$(DST)/%: $(SRC)/% +all: $(OUTPUTS) postfixadmin + +postfixadmin: + ./setup-postfix.sh + +$(DST)/%: configuration/% @mkdir -p $(@D) cp $^ $@