]> id.pley.net Git - postfix.git/commitdiff
Reorganize files around subprojects.
authorJer (on server) <jer@pley.net>
Wed, 30 Nov 2016 22:38:46 +0000 (22:38 +0000)
committerJer (on server) <jer@pley.net>
Wed, 30 Nov 2016 22:38:46 +0000 (22:38 +0000)
16 files changed:
Makefile
postfix/Makefile [new file with mode: 0644]
postfix/main.cf [moved from configuration/main.cf with 100% similarity]
postfix/master.cf [moved from configuration/master.cf with 100% similarity]
postfix/mysql/relay_domains.cf [moved from configuration/mysql/relay_domains.cf with 100% similarity]
postfix/mysql/virtual_alias_maps.cf [moved from configuration/mysql/virtual_alias_maps.cf with 100% similarity]
postfix/mysql/virtual_domains_maps.cf [moved from configuration/mysql/virtual_domains_maps.cf with 100% similarity]
postfix/mysql/virtual_mailbox_limits.cf [moved from configuration/mysql/virtual_mailbox_limits.cf with 100% similarity]
postfix/mysql/virtual_mailbox_maps.cf [moved from configuration/mysql/virtual_mailbox_maps.cf with 100% similarity]
postfix/postgrey_whitelist_clients.local [moved from configuration/postgrey_whitelist_clients.local with 100% similarity]
postfix/postgrey_whitelist_recipients [moved from configuration/postgrey_whitelist_recipients with 100% similarity]
postfix/rbl_override [moved from configuration/rbl_override with 100% similarity]
postfixadmin/Makefile [new file with mode: 0644]
postfixadmin/config.local.php [moved from config.local.php with 100% similarity]
postfixadmin/postfixadmin.conf [moved from postfixadmin.conf with 100% similarity]
postfixadmin/setup-postfixadmin.sh [moved from setup-postfix.sh with 100% similarity]

index 3e55dfab5a170c47ac0be9dccf3a5f716b0821a1..6183414beeeb5231550a3fc5c2c12b7ae052aec2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,7 @@
-DST := /etc/postfix
+SUBDIRS := postfix postfixadmin 
 
-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: $(SUBDIRS)
+.PHONY: $(SUBDIRS)
 
-OUTPUTS := $(subst configuration/,$(DST)/,$(INPUTS))
-
-all: $(OUTPUTS) postfixadmin
-
-postfixadmin:
-       ./setup-postfix.sh
-
-$(DST)/%: configuration/%
-       @mkdir -p $(@D)
-       cp $^ $@
+$(SUBDIRS):
+       $(MAKE) -C $@
diff --git a/postfix/Makefile b/postfix/Makefile
new file mode 100644 (file)
index 0000000..fb35215
--- /dev/null
@@ -0,0 +1,21 @@
+DST := /etc/postfix
+
+INPUTS := \
+       main.cf \
+       master.cf \
+       postgrey_whitelist_clients.local \
+       postgrey_whitelist_recipients \
+       rbl_override \
+       mysql/relay_domains.cf \
+       mysql/virtual_alias_maps.cf \
+       mysql/virtual_domains_maps.cf \
+       mysql/virtual_mailbox_limits.cf \
+       mysql/virtual_mailbox_maps.cf
+
+OUTPUTS := $(INPUTS:%=$(DST)/%)
+
+all: $(OUTPUTS)
+
+$(DST)/%: configuration/%
+       @mkdir -p $(@D)
+       cp $^ $@
similarity index 100%
rename from configuration/main.cf
rename to postfix/main.cf
similarity index 100%
rename from configuration/master.cf
rename to postfix/master.cf
diff --git a/postfixadmin/Makefile b/postfixadmin/Makefile
new file mode 100644 (file)
index 0000000..85487e2
--- /dev/null
@@ -0,0 +1,2 @@
+all:
+       ./setup-postfixadmin.sh