Makefile revision 64562
1#
2#  Makefile for configuration files.
3#
4#	$Id: Makefile,v 8.40 2000/02/01 22:07:15 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
14M4=	m4
15CFDIR=	..
16CHMOD=	chmod
17ROMODE=	444
18RM=	rm -f
19
20.SUFFIXES:  .mc .cf
21
22.mc.cf:
23	$(RM) $@
24	$(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@ || ( $(RM) $@ && exit 1 )
25	$(CHMOD) $(ROMODE) $@
26
27GENERIC=generic-bsd4.4.cf generic-hpux9.cf generic-hpux10.cf \
28		generic-linux.cf \
29		generic-osf1.cf generic-solaris2.cf \
30		generic-sunos4.1.cf generic-ultrix4.cf
31BERKELEY=cs-hpux9.cf cs-osf1.cf cs-solaris2.cf \
32	cs-sunos4.1.cf cs-ultrix4.cf \
33	s2k-osf1.cf s2k-ultrix4.cf \
34	chez.cs.cf huginn.cs.cf mail.cs.cf mail.eecs.cf mailspool.cs.cf \
35	python.cs.cf ucbarpa.cf ucbvax.cf vangogh.cs.cf
36OTHER=	knecht.cf
37ALL=	$(GENERIC) $(BERKELEY) $(OTHER)
38
39all: $(ALL)
40
41berkeley: $(BERKELEY)
42generic: $(GENERIC)
43other: $(OTHER)
44
45clean cleandir:
46	$(RM) $(ALL) core
47
48depend install:
49
50# this is overkill, but....
51M4FILES=\
52	${CFDIR}/domain/Berkeley.EDU.m4 \
53	${CFDIR}/domain/CS.Berkeley.EDU.m4 \
54	${CFDIR}/domain/EECS.Berkeley.EDU.m4 \
55	${CFDIR}/domain/S2K.Berkeley.EDU.m4 \
56	${CFDIR}/domain/berkeley-only.m4 \
57	${CFDIR}/domain/generic.m4 \
58	${CFDIR}/feature/accept_unqualified_senders.m4 \
59	${CFDIR}/feature/accept_unresolvable_domains.m4 \
60	${CFDIR}/feature/access_db.m4 \
61	${CFDIR}/feature/allmasquerade.m4 \
62	${CFDIR}/feature/always_add_domain.m4 \
63	${CFDIR}/feature/bestmx_is_local.m4 \
64	${CFDIR}/feature/bitdomain.m4 \
65	${CFDIR}/feature/blacklist_recipients.m4 \
66	${CFDIR}/feature/dnsbl.m4 \
67	${CFDIR}/feature/domaintable.m4 \
68	${CFDIR}/feature/generics_entire_domain.m4 \
69	${CFDIR}/feature/genericstable.m4 \
70	${CFDIR}/feature/ldap_routing.m4 \
71	${CFDIR}/feature/limited_masquerade.m4 \
72	${CFDIR}/feature/local_lmtp.m4 \
73	${CFDIR}/feature/local_procmail.m4 \
74	${CFDIR}/feature/loose_relay_check.m4 \
75	${CFDIR}/feature/mailertable.m4 \
76	${CFDIR}/feature/masquerade_entire_domain.m4 \
77	${CFDIR}/feature/masquerade_envelope.m4 \
78	${CFDIR}/feature/no_default_msa.m4 \
79	${CFDIR}/feature/nocanonify.m4 \
80	${CFDIR}/feature/nodns.m4 \
81	${CFDIR}/feature/notsticky.m4 \
82	${CFDIR}/feature/nouucp.m4 \
83	${CFDIR}/feature/nullclient.m4 \
84	${CFDIR}/feature/promiscuous_relay.m4 \
85	${CFDIR}/feature/rbl.m4 \
86	${CFDIR}/feature/redirect.m4 \
87	${CFDIR}/feature/relay_based_on_MX.m4 \
88	${CFDIR}/feature/relay_entire_domain.m4 \
89	${CFDIR}/feature/relay_hosts_only.m4 \
90	${CFDIR}/feature/relay_local_from.m4 \
91	${CFDIR}/feature/relay_mail_from.m4 \
92	${CFDIR}/feature/smrsh.m4 \
93	${CFDIR}/feature/stickyhost.m4 \
94	${CFDIR}/feature/use_ct_file.m4 \
95	${CFDIR}/feature/use_cw_file.m4 \
96	${CFDIR}/feature/uucpdomain.m4 \
97	${CFDIR}/feature/virtuser_entire_domain.m4 \
98	${CFDIR}/feature/virtusertable.m4 \
99	${CFDIR}/hack/cssubdomain.m4 \
100	${CFDIR}/m4/cf.m4 \
101	${CFDIR}/m4/cfhead.m4 \
102	${CFDIR}/m4/proto.m4 \
103	${CFDIR}/m4/version.m4 \
104	${CFDIR}/mailer/cyrus.m4 \
105	${CFDIR}/mailer/fax.m4 \
106	${CFDIR}/mailer/local.m4 \
107	${CFDIR}/mailer/mail11.m4 \
108	${CFDIR}/mailer/phquery.m4 \
109	${CFDIR}/mailer/pop.m4 \
110	${CFDIR}/mailer/procmail.m4 \
111	${CFDIR}/mailer/qpage.m4 \
112	${CFDIR}/mailer/smtp.m4 \
113	${CFDIR}/mailer/usenet.m4 \
114	${CFDIR}/mailer/uucp.m4 \
115	${CFDIR}/ostype/aix2.m4 \
116	${CFDIR}/ostype/aix3.m4 \
117	${CFDIR}/ostype/aix4.m4 \
118	${CFDIR}/ostype/altos.m4 \
119	${CFDIR}/ostype/amdahl-uts.m4 \
120	${CFDIR}/ostype/aux.m4 \
121	${CFDIR}/ostype/bsd4.3.m4 \
122	${CFDIR}/ostype/bsd4.4.m4 \
123	${CFDIR}/ostype/bsdi.m4 \
124	${CFDIR}/ostype/bsdi1.0.m4 \
125	${CFDIR}/ostype/bsdi2.0.m4 \
126	${CFDIR}/ostype/dgux.m4 \
127	${CFDIR}/ostype/domainos.m4 \
128	${CFDIR}/ostype/dynix3.2.m4 \
129	${CFDIR}/ostype/gnu.m4 \
130	${CFDIR}/ostype/hpux10.m4 \
131	${CFDIR}/ostype/hpux11.m4 \
132	${CFDIR}/ostype/hpux9.m4 \
133	${CFDIR}/ostype/irix4.m4 \
134	${CFDIR}/ostype/irix5.m4 \
135	${CFDIR}/ostype/irix6.m4 \
136	${CFDIR}/ostype/isc4.1.m4 \
137	${CFDIR}/ostype/linux.m4 \
138	${CFDIR}/ostype/maxion.m4 \
139	${CFDIR}/ostype/mklinux.m4 \
140	${CFDIR}/ostype/nextstep.m4 \
141	${CFDIR}/ostype/openbsd.m4 \
142	${CFDIR}/ostype/osf1.m4 \
143	${CFDIR}/ostype/powerux.m4 \
144	${CFDIR}/ostype/ptx2.m4 \
145	${CFDIR}/ostype/qnx.m4 \
146	${CFDIR}/ostype/riscos4.5.m4 \
147	${CFDIR}/ostype/sco-uw-2.1.m4 \
148	${CFDIR}/ostype/sco3.2.m4 \
149	${CFDIR}/ostype/sinix.m4 \
150	${CFDIR}/ostype/solaris2.m4 \
151	${CFDIR}/ostype/solaris2.ml.m4 \
152	${CFDIR}/ostype/solaris2.pre5.m4 \
153	${CFDIR}/ostype/sunos3.5.m4 \
154	${CFDIR}/ostype/sunos4.1.m4 \
155	${CFDIR}/ostype/svr4.m4 \
156	${CFDIR}/ostype/ultrix4.m4 \
157	${CFDIR}/ostype/unixware7.m4 \
158	${CFDIR}/ostype/unknown.m4 \
159	${CFDIR}/ostype/uxpds.m4
160
161$(ALL): $(M4FILES)
162$(BERKELEY): $(M4FILES)
163$(GENERIC): $(M4FILES)
164$(OTHER): $(M4FILES)
165