* Update Sendmail to version 8.12.10
[dragonfly.git] / contrib / sendmail / cf / cf / Makefile
1 #
2 #  Makefile for configuration files.
3 #
4 #       $Id: Makefile,v 8.56 2001/12/13 23:56:37 gshapiro Exp $
5 #
6
7 #
8 #  Create configuration files using "m4 ../m4/cf.m4 file.mc > file.cf";
9 #  this may be easier than tweaking the Makefile.  You do need to
10 #  have a fairly modern M4 available (GNU m4 works).  On SunOS, use
11 #  /usr/5bin/m4.
12 #
13
14 # name of source for sendmail.cf (without extension)
15 CF=     sendmail
16 # name of source for submit.cf (without extension)
17 SUBMIT= submit
18 # directory for .cf files
19 MAILDIR=/etc/mail
20 M4=     m4
21 CFDIR=  ..
22 CHMOD=  chmod
23 ROMODE= 444
24 RM=     rm -f
25 # use our own install program; should be really confINSTALL
26 INSTALL=../../devtools/bin/install.sh
27 # CF file ownership/permissions
28 CFOWN=root
29 CFGRP=bin
30 CFMODE=0444
31
32
33 .SUFFIXES:  .mc .cf
34
35 .mc.cf:
36         $(RM) $@
37         $(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@ || ( $(RM) $@ && exit 1 )
38         $(CHMOD) $(ROMODE) $@
39
40 GENERIC=generic-bsd4.4.cf generic-hpux9.cf generic-hpux10.cf \
41                 generic-linux.cf generic-mpeix.cf generic-nextstep3.3.cf \
42                 generic-osf1.cf generic-solaris.cf \
43                 generic-sunos4.1.cf generic-ultrix4.cf
44 BERKELEY=cs-hpux9.cf cs-hpux10.cf cs-osf1.cf cs-solaris.cf \
45         cs-sunos4.1.cf cs-ultrix4.cf \
46         s2k-osf1.cf s2k-ultrix4.cf \
47         chez.cs.cf huginn.cs.cf mail.cs.cf mail.eecs.cf mailspool.cs.cf \
48         python.cs.cf ucbarpa.cf ucbvax.cf vangogh.cs.cf
49 OTHER=  knecht.cf
50 ALL=    submit.cf $(GENERIC) $(OTHER)
51
52 all: $(ALL)
53
54 berkeley: $(BERKELEY)
55 generic: $(GENERIC)
56 other: $(OTHER)
57
58 clean cleandir:
59         $(RM) $(ALL) core
60
61 install:
62         @echo "Before installing the .cf files please make sure you have read the"
63         @echo "instructions in the file ../../INSTALL.  You should have prepared the"
64         @echo "files \"submit.mc\" (supplied) and \"sendmail.mc\". Then you can use"
65         @echo ""
66         @echo " make install-cf"
67         @echo ""
68         @echo "If you use a different name than \"sendmail\" for your main .mc file"
69
70         @echo "then you should use"
71         @echo ""
72         @echo " make install-cf CF=config"
73         @echo ""
74         @echo "where \"config\" is the name of your main .mc file."
75
76 install-cf:  install-sendmail-cf install-submit-cf
77
78 install-sendmail-cf: $(CF).cf
79         $(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(CF).cf ${DESTDIR}$(MAILDIR)/sendmail.cf
80
81 install-submit-cf: $(SUBMIT).cf
82         $(INSTALL) -c -o $(CFOWN) -g $(CFGRP) -m $(CFMODE) $(SUBMIT).cf ${DESTDIR}$(MAILDIR)/submit.cf
83
84 depend:
85
86 # this is overkill, but....
87 M4FILES=\
88         ${CFDIR}/domain/Berkeley.EDU.m4 \
89         ${CFDIR}/domain/CS.Berkeley.EDU.m4 \
90         ${CFDIR}/domain/EECS.Berkeley.EDU.m4 \
91         ${CFDIR}/domain/S2K.Berkeley.EDU.m4 \
92         ${CFDIR}/domain/berkeley-only.m4 \
93         ${CFDIR}/domain/generic.m4 \
94         ${CFDIR}/feature/accept_unqualified_senders.m4 \
95         ${CFDIR}/feature/accept_unresolvable_domains.m4 \
96         ${CFDIR}/feature/access_db.m4 \
97         ${CFDIR}/feature/allmasquerade.m4 \
98         ${CFDIR}/feature/always_add_domain.m4 \
99         ${CFDIR}/feature/bestmx_is_local.m4 \
100         ${CFDIR}/feature/bitdomain.m4 \
101         ${CFDIR}/feature/blacklist_recipients.m4 \
102         ${CFDIR}/feature/dnsbl.m4 \
103         ${CFDIR}/feature/domaintable.m4 \
104         ${CFDIR}/feature/generics_entire_domain.m4 \
105         ${CFDIR}/feature/genericstable.m4 \
106         ${CFDIR}/feature/ldap_routing.m4 \
107         ${CFDIR}/feature/limited_masquerade.m4 \
108         ${CFDIR}/feature/local_lmtp.m4 \
109         ${CFDIR}/feature/local_procmail.m4 \
110         ${CFDIR}/feature/loose_relay_check.m4 \
111         ${CFDIR}/feature/mailertable.m4 \
112         ${CFDIR}/feature/masquerade_entire_domain.m4 \
113         ${CFDIR}/feature/masquerade_envelope.m4 \
114         ${CFDIR}/feature/no_default_msa.m4 \
115         ${CFDIR}/feature/nocanonify.m4 \
116         ${CFDIR}/feature/nodns.m4 \
117         ${CFDIR}/feature/notsticky.m4 \
118         ${CFDIR}/feature/nouucp.m4 \
119         ${CFDIR}/feature/nullclient.m4 \
120         ${CFDIR}/feature/promiscuous_relay.m4 \
121         ${CFDIR}/feature/redirect.m4 \
122         ${CFDIR}/feature/relay_based_on_MX.m4 \
123         ${CFDIR}/feature/relay_entire_domain.m4 \
124         ${CFDIR}/feature/relay_hosts_only.m4 \
125         ${CFDIR}/feature/relay_local_from.m4 \
126         ${CFDIR}/feature/relay_mail_from.m4 \
127         ${CFDIR}/feature/smrsh.m4 \
128         ${CFDIR}/feature/stickyhost.m4 \
129         ${CFDIR}/feature/use_ct_file.m4 \
130         ${CFDIR}/feature/use_cw_file.m4 \
131         ${CFDIR}/feature/uucpdomain.m4 \
132         ${CFDIR}/feature/virtuser_entire_domain.m4 \
133         ${CFDIR}/feature/virtusertable.m4 \
134         ${CFDIR}/hack/cssubdomain.m4 \
135         ${CFDIR}/m4/cf.m4 \
136         ${CFDIR}/m4/cfhead.m4 \
137         ${CFDIR}/m4/proto.m4 \
138         ${CFDIR}/m4/version.m4 \
139         ${CFDIR}/mailer/cyrus.m4 \
140         ${CFDIR}/mailer/fax.m4 \
141         ${CFDIR}/mailer/local.m4 \
142         ${CFDIR}/mailer/mail11.m4 \
143         ${CFDIR}/mailer/phquery.m4 \
144         ${CFDIR}/mailer/pop.m4 \
145         ${CFDIR}/mailer/procmail.m4 \
146         ${CFDIR}/mailer/qpage.m4 \
147         ${CFDIR}/mailer/smtp.m4 \
148         ${CFDIR}/mailer/usenet.m4 \
149         ${CFDIR}/mailer/uucp.m4 \
150         ${CFDIR}/ostype/aix3.m4 \
151         ${CFDIR}/ostype/aix4.m4 \
152         ${CFDIR}/ostype/altos.m4 \
153         ${CFDIR}/ostype/amdahl-uts.m4 \
154         ${CFDIR}/ostype/a-ux.m4 \
155         ${CFDIR}/ostype/bsd4.3.m4 \
156         ${CFDIR}/ostype/bsd4.4.m4 \
157         ${CFDIR}/ostype/bsdi.m4 \
158         ${CFDIR}/ostype/bsdi1.0.m4 \
159         ${CFDIR}/ostype/bsdi2.0.m4 \
160         ${CFDIR}/ostype/dgux.m4 \
161         ${CFDIR}/ostype/domainos.m4 \
162         ${CFDIR}/ostype/dynix3.2.m4 \
163         ${CFDIR}/ostype/freebsd4.m4 \
164         ${CFDIR}/ostype/freebsd5.m4 \
165         ${CFDIR}/ostype/gnu.m4 \
166         ${CFDIR}/ostype/hpux10.m4 \
167         ${CFDIR}/ostype/hpux11.m4 \
168         ${CFDIR}/ostype/hpux9.m4 \
169         ${CFDIR}/ostype/irix4.m4 \
170         ${CFDIR}/ostype/irix5.m4 \
171         ${CFDIR}/ostype/irix6.m4 \
172         ${CFDIR}/ostype/isc4.1.m4 \
173         ${CFDIR}/ostype/linux.m4 \
174         ${CFDIR}/ostype/maxion.m4 \
175         ${CFDIR}/ostype/mklinux.m4 \
176         ${CFDIR}/ostype/mpeix.m4 \
177         ${CFDIR}/ostype/nextstep.m4 \
178         ${CFDIR}/ostype/openbsd.m4 \
179         ${CFDIR}/ostype/osf1.m4 \
180         ${CFDIR}/ostype/powerux.m4 \
181         ${CFDIR}/ostype/ptx2.m4 \
182         ${CFDIR}/ostype/qnx.m4 \
183         ${CFDIR}/ostype/riscos4.5.m4 \
184         ${CFDIR}/ostype/sco-uw-2.1.m4 \
185         ${CFDIR}/ostype/sco3.2.m4 \
186         ${CFDIR}/ostype/sinix.m4 \
187         ${CFDIR}/ostype/solaris2.m4 \
188         ${CFDIR}/ostype/solaris2.ml.m4 \
189         ${CFDIR}/ostype/solaris2.pre5.m4 \
190         ${CFDIR}/ostype/solaris8.m4 \
191         ${CFDIR}/ostype/sunos3.5.m4 \
192         ${CFDIR}/ostype/sunos4.1.m4 \
193         ${CFDIR}/ostype/svr4.m4 \
194         ${CFDIR}/ostype/ultrix4.m4 \
195         ${CFDIR}/ostype/unixware7.m4 \
196         ${CFDIR}/ostype/unknown.m4 \
197         ${CFDIR}/ostype/uxpds.m4
198
199 $(ALL): $(M4FILES)
200 $(BERKELEY): $(M4FILES)
201 $(GENERIC): $(M4FILES)
202 $(OTHER): $(M4FILES)