Makefile revision 77349
170656Sobrien#
270656Sobrien#  Makefile for configuration files.
370656Sobrien#
470656Sobrien#	$Id: Makefile,v 8.40.8.5 2001/04/12 22:39:52 gshapiro Exp $
570656Sobrien#
670656Sobrien
770656Sobrien#
870656Sobrien#  Create configuration files using "m4 ../m4/cf.m4 file.mc > file.cf";
970656Sobrien#  this may be easier than tweaking the Makefile.  You do need to
1070656Sobrien#  have a fairly modern M4 available (GNU m4 works).  On SunOS, use
1170656Sobrien#  /usr/5bin/m4.
1270656Sobrien#
1370656Sobrien
1470656SobrienM4=	m4
1570656SobrienCFDIR=	..
1670656SobrienCHMOD=	chmod
1770656SobrienROMODE=	444
1870656SobrienRM=	rm -f
1970656Sobrien
2070656Sobrien.SUFFIXES:  .mc .cf
2170656Sobrien
2270656Sobrien.mc.cf:
2370656Sobrien	$(RM) $@
2470656Sobrien	$(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@ || ( $(RM) $@ && exit 1 )
2570656Sobrien	$(CHMOD) $(ROMODE) $@
26216338Sdim
27216338SdimGENERIC=generic-bsd4.4.cf generic-hpux9.cf generic-hpux10.cf \
28216338Sdim		generic-linux.cf generic-nextstep3.3.cf \
2970656Sobrien		generic-osf1.cf generic-solaris2.cf \
3070656Sobrien		generic-sunos4.1.cf generic-ultrix4.cf
3170656SobrienBERKELEY=cs-hpux9.cf cs-hpux10.cf cs-osf1.cf cs-solaris2.cf \
3270656Sobrien	cs-sunos4.1.cf cs-ultrix4.cf \
3370656Sobrien	s2k-osf1.cf s2k-ultrix4.cf \
3470656Sobrien	chez.cs.cf huginn.cs.cf mail.cs.cf mail.eecs.cf mailspool.cs.cf \
3570656Sobrien	python.cs.cf ucbarpa.cf ucbvax.cf vangogh.cs.cf
3670656SobrienOTHER=	knecht.cf
3770656SobrienALL=	$(GENERIC) $(BERKELEY) $(OTHER)
3870656Sobrien
3970656Sobrienall: $(ALL)
4070656Sobrien
4170656Sobrienberkeley: $(BERKELEY)
4270656Sobriengeneric: $(GENERIC)
4370656Sobrienother: $(OTHER)
4470656Sobrien
45217399Skibclean cleandir:
46217399Skib	$(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/bsd4.3.m4 \
121	${CFDIR}/ostype/bsd4.4.m4 \
122	${CFDIR}/ostype/bsdi.m4 \
123	${CFDIR}/ostype/bsdi1.0.m4 \
124	${CFDIR}/ostype/bsdi2.0.m4 \
125	${CFDIR}/ostype/dgux.m4 \
126	${CFDIR}/ostype/domainos.m4 \
127	${CFDIR}/ostype/dynix3.2.m4 \
128	${CFDIR}/ostype/gnu.m4 \
129	${CFDIR}/ostype/hpux10.m4 \
130	${CFDIR}/ostype/hpux11.m4 \
131	${CFDIR}/ostype/hpux9.m4 \
132	${CFDIR}/ostype/irix4.m4 \
133	${CFDIR}/ostype/irix5.m4 \
134	${CFDIR}/ostype/irix6.m4 \
135	${CFDIR}/ostype/isc4.1.m4 \
136	${CFDIR}/ostype/linux.m4 \
137	${CFDIR}/ostype/maxion.m4 \
138	${CFDIR}/ostype/mklinux.m4 \
139	${CFDIR}/ostype/nextstep.m4 \
140	${CFDIR}/ostype/openbsd.m4 \
141	${CFDIR}/ostype/osf1.m4 \
142	${CFDIR}/ostype/powerux.m4 \
143	${CFDIR}/ostype/ptx2.m4 \
144	${CFDIR}/ostype/qnx.m4 \
145	${CFDIR}/ostype/riscos4.5.m4 \
146	${CFDIR}/ostype/sco-uw-2.1.m4 \
147	${CFDIR}/ostype/sco3.2.m4 \
148	${CFDIR}/ostype/sinix.m4 \
149	${CFDIR}/ostype/solaris2.m4 \
150	${CFDIR}/ostype/solaris2.ml.m4 \
151	${CFDIR}/ostype/solaris2.pre5.m4 \
152	${CFDIR}/ostype/solaris8.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