Proper generation of Exim domainlists
[hcoop/domtool2.git] / Makefile
index 33f7683..a509c0b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,8 @@ COMMON_DEPS := configDefault/config.sig configDefault/configDefault.sml \
 .PHONY: all mlton smlnj install
 
 mlton: bin/domtool-server bin/domtool-client bin/domtool-slave \
-       bin/domtool-admin bin/domtool-doc bin/dbtool
+       bin/domtool-admin bin/domtool-doc bin/dbtool bin/vmail \
+       bin/smtplog bin/setsa
 
 smlnj: $(COMMON_DEPS) openssl/smlnj/FFI/libssl.h.cm src/domtool.cm
 
@@ -65,6 +66,18 @@ src/dbtool.mlb: src/prefix.mlb src/sources src/suffix.mlb
        $(MAKE_MLB_BASE) >src/dbtool.mlb
        echo "main-dbtool.sml" >>src/dbtool.mlb
 
+src/vmail.mlb: src/prefix.mlb src/sources src/suffix.mlb
+       $(MAKE_MLB_BASE) >src/vmail.mlb
+       echo "main-vmail.sml" >>src/vmail.mlb
+
+src/setsa.mlb: src/prefix.mlb src/sources src/suffix.mlb
+       $(MAKE_MLB_BASE) >src/setsa.mlb
+       echo "main-setsa.sml" >>src/setsa.mlb
+
+src/smtplog.mlb: src/prefix.mlb src/sources src/suffix.mlb
+       $(MAKE_MLB_BASE) >src/smtplog.mlb
+       echo "main-smtplog.sml" >>src/smtplog.mlb
+
 openssl/smlnj/FFI/libssl.h.cm: openssl/openssl_sml.h
        cd openssl/smlnj ; ml-nlffigen -d FFI -lh LibsslH.libh -include ../libssl-h.sml \
        -cm libssl.h.cm -D__builtin_va_list="void*" \
@@ -85,7 +98,8 @@ COMMON_MLTON_DEPS := openssl/mlton/FFI/libssl.h.mlb \
        src/domtool.lex.sml \
        src/domtool.grm.sig src/domtool.grm.sml \
        $(COMMON_DEPS) src/*.sig src/*.sml \
-       src/plugins/*.sig src/plugins/*.sml
+       src/plugins/*.sig src/plugins/*.sml \
+       src/mail/*.sig src/mail/*.sml
 
 bin/domtool-server: $(COMMON_MLTON_DEPS) src/domtool-server.mlb 
        mlton -output bin/domtool-server -link-opt -ldl src/domtool-server.mlb
@@ -105,6 +119,15 @@ bin/domtool-doc: $(COMMON_MLTON_DEPS) src/domtool-doc.mlb
 bin/dbtool: $(COMMON_MLTON_DEPS) src/dbtool.mlb
        mlton -output bin/dbtool -link-opt -ldl src/dbtool.mlb
 
+bin/vmail: $(COMMON_MLTON_DEPS) src/vmail.mlb
+       mlton -output bin/vmail -link-opt -ldl src/vmail.mlb
+
+bin/setsa: $(COMMON_MLTON_DEPS) src/setsa.mlb
+       mlton -output bin/setsa -link-opt -ldl src/setsa.mlb
+
+bin/smtplog: $(COMMON_MLTON_DEPS) src/smtplog.mlb
+       mlton -output bin/smtplog -link-opt -ldl src/smtplog.mlb
+
 install:
        cp scripts/domtool-publish /usr/local/sbin/
        cp scripts/domtool-reset-global /usr/local/sbin/
@@ -113,6 +136,11 @@ install:
        cp scripts/domtool-addcert /usr/local/bin/
        cp scripts/domtool-addacl /usr/local/bin/
        cp scripts/domtool-rmuser /usr/local/bin/
+       cp scripts/domtool-admin-sudo /usr/local/bin/
+       cp scripts/domtool-server-logged /usr/local/bin/
+       cp scripts/domtool-slave-logged /usr/local/bin/
+       cp scripts/domtool-server /etc/init.d/
+       cp scripts/domtool-slave /etc/init.d/
        cp openssl/openssl_sml.so /usr/local/lib/
        -cp bin/domtool-server /usr/local/sbin/
        -cp bin/domtool-slave /usr/local/sbin/
@@ -120,6 +148,9 @@ install:
        -cp bin/domtool-admin /usr/local/bin/
        -cp bin/domtool-doc /usr/local/bin/
        -cp bin/dbtool /usr/local/bin/
+       -cp bin/vmail /usr/local/bin/
+       -cp bin/setsa /usr/local/bin/
+       -cp bin/smtplog /usr/local/bin/
        cp src/plugins/domtool-postgres /usr/local/sbin/
        cp src/plugins/domtool-mysql /usr/local/sbin/