diff options
Diffstat (limited to 'usr.sbin/sendmail/cf/cf/Makefile')
-rw-r--r-- | usr.sbin/sendmail/cf/cf/Makefile | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/usr.sbin/sendmail/cf/cf/Makefile b/usr.sbin/sendmail/cf/cf/Makefile index 7450b2a..3ab538c 100644 --- a/usr.sbin/sendmail/cf/cf/Makefile +++ b/usr.sbin/sendmail/cf/cf/Makefile @@ -21,27 +21,50 @@ RM= rm -f .mc.cf: $(RM) $@ - (cd ${.CURDIR} && $(M4) ${CFDIR}/m4/cf.m4 ${@:R}.mc > obj/$@) + (cd ${.CURDIR} && $(M4) ${CFDIR}/m4/cf.m4 ${@:R}.mc) > $@ $(CHMOD) $(ROMODE) $@ -ALL= generic-bsd4.4.cf generic-hpux9.cf generic-hpux10.cf \ - generic-osf1.cf generic-solaris2.cf \ - generic-sunos4.1.cf generic-ultrix4.cf \ - cs-hpux9.cf cs-osf1.cf cs-solaris2.cf \ - cs-sunos4.1.cf cs-ultrix4.cf \ - s2k-osf1.cf s2k-ultrix4.cf \ - chez.cs.cf huginn.cs.cf mail.cs.cf mail.eecs.cf mailspool.cs.cf \ - python.cs.cf ucbarpa.cf ucbvax.cf vangogh.cs.cf knecht.cf +ALL= freebsd.cf + +# Local sendmail.cf, may be set in /etc/make.conf. Warning! If set, this +# causes 'make install' to always copy it over /etc/sendmail.cf!!! +# Caveat emptor! Be sure you want this before you enable it. +.if defined(SENDMAIL_CF) +ALL+= ${SENDMAIL_CF} +.endif + +CLEANFILES+=$(ALL) + +#We dont build the generic stuff... +#Use `make generic-bsd4.4.cf' if you want one.. +#ALL= generic-bsd4.4.cf generic-hpux9.cf generic-hpux10.cf \ +# generic-osf1.cf generic-solaris2.cf \ +# generic-sunos4.1.cf generic-ultrix4.cf \ +# cs-hpux9.cf cs-osf1.cf cs-solaris2.cf \ +# cs-sunos4.1.cf cs-ultrix4.cf \ +# s2k-osf1.cf s2k-ultrix4.cf \ +# chez.cs.cf huginn.cs.cf mail.cs.cf mail.eecs.cf mailspool.cs.cf \ +# python.cs.cf ucbarpa.cf ucbvax.cf vangogh.cs.cf knecht.cf all: $(ALL) -clean cleandir: - $(RM) $(ALL) core +depend: + +install: +.if defined(SENDMAIL_CF) + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${SENDMAIL_CF} \ + ${DESTDIR}/etc/sendmail.cf +.endif + -depend install: +# Helper for src/etc/Makefile +etc-sendmail.cf: freebsd.cf + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 freebsd.cf \ + ${DESTDIR}/etc/sendmail.cf # this is overkill, but.... M4FILES=\ + ${CFDIR}/domain/generic.m4 \ ${CFDIR}/domain/Berkeley.EDU.m4 \ ${CFDIR}/domain/CS.Berkeley.EDU.m4 \ ${CFDIR}/domain/EECS.Berkeley.EDU.m4 \ |