diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2001-02-28 04:04:07 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2001-02-28 04:04:07 +0000 |
commit | 2ab101b2392bc752f7731c63d3753c60e65c4432 (patch) | |
tree | 487f4edcb874a5309dfd0b2ed369791fde9b4f30 /etc/sendmail/Makefile | |
parent | 4e167066cadb4d3207a00917318c8378fb6a8b9f (diff) | |
download | FreeBSD-src-2ab101b2392bc752f7731c63d3753c60e65c4432.zip FreeBSD-src-2ab101b2392bc752f7731c63d3753c60e65c4432.tar.gz |
Fix dependencies and cleanup spacing in the file
Diffstat (limited to 'etc/sendmail/Makefile')
-rw-r--r-- | etc/sendmail/Makefile | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/etc/sendmail/Makefile b/etc/sendmail/Makefile index 63f49fa..43f602d 100644 --- a/etc/sendmail/Makefile +++ b/etc/sendmail/Makefile @@ -1,19 +1,22 @@ # @(#)Makefile 8.19 (Berkeley) 1/14/97 # $FreeBSD$ -M4= m4 -CFDIR= ${.CURDIR}/../../contrib/sendmail/cf -CHMOD= chmod -ROMODE= 444 -RM= rm -f +M4= m4 +CHMOD= chmod +ROMODE= 444 +RM= rm -f +CFDIR= ${.CURDIR}/../../contrib/sendmail/cf -.SUFFIXES: .mc .cf +# this is overkill, but.... +M4FILES!= find ${CFDIR} -type f -name '*.m4' -print + +.SUFFIXES: .mc .cf -.mc.cf: - $(RM) ${.TARGET} +.mc.cf: ${M4FILES} + ${RM} ${.TARGET} (cd ${.CURDIR} && \ - $(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET} - $(CHMOD) $(ROMODE) ${.TARGET} + ${M4} -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET} + ${CHMOD} ${ROMODE} ${.TARGET} ALL= freebsd.cf @@ -29,35 +32,31 @@ INSTALL_CF= ${SENDMAIL_CF} .endif .endif -.if defined(INSTALL_CF) -ALL+= ${INSTALL_CF} -.endif +ALL+= ${INSTALL_CF} # Additional .cf files to build .if defined(SENDMAIL_ADDITIONAL_MC) -ALL+= ${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g} +ALL+= ${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g} .endif -CLEANFILES+=$(ALL) +CLEANFILES+= ${ALL} -all: $(ALL) +all: ${ALL} depend: -.if defined(INSTALL_CF) -install: ${INSTALL_CF} +install: ${INSTALL_CF} .if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF)) @echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set" @false .endif +.if defined(INSTALL_CF) ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \ ${DESTDIR}/etc/mail/sendmail.cf -.else -install: .endif # Helper for src/etc/Makefile -distribution: freebsd.cf freebsd.mc +distribution: freebsd.cf freebsd.mc ${INSTALL_CF} .if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF)) @echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set" @false @@ -76,9 +75,4 @@ distribution: freebsd.cf freebsd.mc ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/sendmail.st -# this is overkill, but.... -M4FILES!= find ${CFDIR} -type f -name '*.m4' -print - -$(ALL): $(M4FILES) - .include <bsd.prog.mk> |