xref: /titanic_44/usr/src/cmd/sendmail/cf/cf/Makefile (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
50ea5e3a5Sjjj# Common Development and Distribution License (the "License").
6445f2479Sjbeck# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
21058561cbSjbeck
227c478bd9Sstevel@tonic-gate#
237c478bd9Sstevel@tonic-gate#  Makefile for configuration files.
247c478bd9Sstevel@tonic-gate#
25d4660949Sjbeck#  Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
267c478bd9Sstevel@tonic-gate#  Use is subject to license terms.
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate#	@(#)Makefile	8.15 (Berkeley) 3/29/98
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate#  Create configuration files using "m4 ../m4/cf.m4 file.mc > file.cf"
337c478bd9Sstevel@tonic-gate#  of "/usr/ccs/bin/make file.cf"; these may be easier than tweaking the
347c478bd9Sstevel@tonic-gate#  Makefile.  Also, updates will over-write any changes to the Makefile.
357c478bd9Sstevel@tonic-gate#  You do need to have a fairly modern M4 available (GNU m4 works).  On
367c478bd9Sstevel@tonic-gate#  Solaris, use /usr/ccs/bin/m4.
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateM4=	/usr/ccs/bin/m4
407c478bd9Sstevel@tonic-gateCFDIR=	..
417c478bd9Sstevel@tonic-gateMV=	/usr/bin/mv
427c478bd9Sstevel@tonic-gateRM=	/usr/bin/rm -f
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate.SUFFIXES:  .mc .cf
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate.mc.cf:
477c478bd9Sstevel@tonic-gate	test ! -f $@ || $(MV) $@ $@.prev
487c478bd9Sstevel@tonic-gate	$(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@
497c478bd9Sstevel@tonic-gate
50d4660949SjbeckALL=	sendmail.cf submit.cf
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateall: $(ALL)
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateclean cleandir:
55*b6805bf7SGordon Ross	$(RM) $(ALL)
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gatedepend install:
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate# this is overkill, but....
607c478bd9Sstevel@tonic-gateM4FILES=\
617c478bd9Sstevel@tonic-gate	${CFDIR}/domain/generic.m4 \
627c478bd9Sstevel@tonic-gate	${CFDIR}/domain/solaris-antispam.m4 \
637c478bd9Sstevel@tonic-gate	${CFDIR}/domain/solaris-generic.m4 \
647c478bd9Sstevel@tonic-gate	${CFDIR}/feature/accept_unqualified_senders.m4 \
657c478bd9Sstevel@tonic-gate	${CFDIR}/feature/accept_unresolvable_domains.m4 \
667c478bd9Sstevel@tonic-gate	${CFDIR}/feature/access_db.m4 \
677c478bd9Sstevel@tonic-gate	${CFDIR}/feature/allmasquerade.m4 \
687c478bd9Sstevel@tonic-gate	${CFDIR}/feature/always_add_domain.m4 \
69058561cbSjbeck	${CFDIR}/feature/badmx.m4 \
707c478bd9Sstevel@tonic-gate	${CFDIR}/feature/bestmx_is_local.m4 \
717c478bd9Sstevel@tonic-gate	${CFDIR}/feature/bitdomain.m4 \
727c478bd9Sstevel@tonic-gate	${CFDIR}/feature/blacklist_recipients.m4 \
73058561cbSjbeck	${CFDIR}/feature/block_bad_helo.m4 \
747c478bd9Sstevel@tonic-gate	${CFDIR}/feature/compat_check.m4 \
757c478bd9Sstevel@tonic-gate	${CFDIR}/feature/conncontrol.m4 \
767c478bd9Sstevel@tonic-gate	${CFDIR}/feature/delay_checks.m4 \
777c478bd9Sstevel@tonic-gate	${CFDIR}/feature/dnsbl.m4 \
787c478bd9Sstevel@tonic-gate	${CFDIR}/feature/domaintable.m4 \
797c478bd9Sstevel@tonic-gate	${CFDIR}/feature/enhdnsbl.m4 \
807c478bd9Sstevel@tonic-gate	${CFDIR}/feature/generics_entire_domain.m4 \
817c478bd9Sstevel@tonic-gate	${CFDIR}/feature/genericstable.m4 \
827c478bd9Sstevel@tonic-gate	${CFDIR}/feature/greet_pause.m4 \
837c478bd9Sstevel@tonic-gate	${CFDIR}/feature/ldap_routing.m4 \
847c478bd9Sstevel@tonic-gate	${CFDIR}/feature/limited_masquerade.m4 \
857c478bd9Sstevel@tonic-gate	${CFDIR}/feature/local_lmtp.m4 \
867c478bd9Sstevel@tonic-gate	${CFDIR}/feature/local_no_masquerade.m4 \
87445f2479Sjbeck	${CFDIR}/feature/local_procmail.m4 \
887c478bd9Sstevel@tonic-gate	${CFDIR}/feature/lookupdotdomain.m4 \
897c478bd9Sstevel@tonic-gate	${CFDIR}/feature/loose_relay_check.m4 \
907c478bd9Sstevel@tonic-gate	${CFDIR}/feature/mailertable.m4 \
917c478bd9Sstevel@tonic-gate	${CFDIR}/feature/masquerade_entire_domain.m4 \
927c478bd9Sstevel@tonic-gate	${CFDIR}/feature/masquerade_envelope.m4 \
937c478bd9Sstevel@tonic-gate	${CFDIR}/feature/msp.m4 \
947c478bd9Sstevel@tonic-gate	${CFDIR}/feature/mtamark.m4 \
957c478bd9Sstevel@tonic-gate	${CFDIR}/feature/no_default_msa.m4 \
967c478bd9Sstevel@tonic-gate	${CFDIR}/feature/nocanonify.m4 \
977c478bd9Sstevel@tonic-gate	${CFDIR}/feature/notsticky.m4 \
987c478bd9Sstevel@tonic-gate	${CFDIR}/feature/nouucp.m4 \
997c478bd9Sstevel@tonic-gate	${CFDIR}/feature/preserve_local_plus_detail.m4 \
1007c478bd9Sstevel@tonic-gate	${CFDIR}/feature/preserve_luser_host.m4 \
101445f2479Sjbeck	${CFDIR}/feature/promiscuous_relay.m4 \
1027c478bd9Sstevel@tonic-gate	${CFDIR}/feature/queuegroup.m4 \
1037c478bd9Sstevel@tonic-gate	${CFDIR}/feature/ratecontrol.m4 \
1047c478bd9Sstevel@tonic-gate	${CFDIR}/feature/redirect.m4 \
1057c478bd9Sstevel@tonic-gate	${CFDIR}/feature/relay_based_on_MX.m4 \
1067c478bd9Sstevel@tonic-gate	${CFDIR}/feature/relay_entire_domain.m4 \
1077c478bd9Sstevel@tonic-gate	${CFDIR}/feature/relay_hosts_only.m4 \
1087c478bd9Sstevel@tonic-gate	${CFDIR}/feature/relay_local_from.m4 \
1097c478bd9Sstevel@tonic-gate	${CFDIR}/feature/relay_mail_from.m4 \
110058561cbSjbeck	${CFDIR}/feature/require_rdns.m4 \
1117c478bd9Sstevel@tonic-gate	${CFDIR}/feature/smrsh.m4 \
1127c478bd9Sstevel@tonic-gate	${CFDIR}/feature/stickyhost.m4 \
1137c478bd9Sstevel@tonic-gate	${CFDIR}/feature/use_client_ptr.m4 \
1147c478bd9Sstevel@tonic-gate	${CFDIR}/feature/use_ct_file.m4 \
1157c478bd9Sstevel@tonic-gate	${CFDIR}/feature/use_cw_file.m4 \
1167c478bd9Sstevel@tonic-gate	${CFDIR}/feature/uucpdomain.m4 \
1177c478bd9Sstevel@tonic-gate	${CFDIR}/feature/virtuser_entire_domain.m4 \
1187c478bd9Sstevel@tonic-gate	${CFDIR}/feature/virtusertable.m4 \
1197c478bd9Sstevel@tonic-gate	${CFDIR}/m4/cf.m4 \
1207c478bd9Sstevel@tonic-gate	${CFDIR}/m4/cfhead.m4 \
1217c478bd9Sstevel@tonic-gate	${CFDIR}/m4/proto.m4 \
1227c478bd9Sstevel@tonic-gate	${CFDIR}/m4/version.m4 \
1237c478bd9Sstevel@tonic-gate	${CFDIR}/mailer/local.m4 \
1247c478bd9Sstevel@tonic-gate	${CFDIR}/mailer/smtp.m4 \
1257c478bd9Sstevel@tonic-gate	${CFDIR}/mailer/uucp.m4 \
1267c478bd9Sstevel@tonic-gate	${CFDIR}/ostype/solaris2.m4 \
1277c478bd9Sstevel@tonic-gate	${CFDIR}/ostype/solaris2.ml.m4 \
1287c478bd9Sstevel@tonic-gate	${CFDIR}/ostype/solaris2.pre5.m4 \
1297c478bd9Sstevel@tonic-gate	${CFDIR}/ostype/solaris8.m4
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate$(ALL):  $(M4FILES)
132