mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Fix dependencies and cleanup spacing in the file
This commit is contained in:
parent
457767e4ff
commit
fab9e3acac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73210
@ -1,19 +1,22 @@
|
|||||||
# @(#)Makefile 8.19 (Berkeley) 1/14/97
|
# @(#)Makefile 8.19 (Berkeley) 1/14/97
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
M4= m4
|
M4= m4
|
||||||
CFDIR= ${.CURDIR}/../../contrib/sendmail/cf
|
CHMOD= chmod
|
||||||
CHMOD= chmod
|
ROMODE= 444
|
||||||
ROMODE= 444
|
RM= rm -f
|
||||||
RM= rm -f
|
CFDIR= ${.CURDIR}/../../contrib/sendmail/cf
|
||||||
|
|
||||||
.SUFFIXES: .mc .cf
|
# this is overkill, but....
|
||||||
|
M4FILES!= find ${CFDIR} -type f -name '*.m4' -print
|
||||||
|
|
||||||
.mc.cf:
|
.SUFFIXES: .mc .cf
|
||||||
$(RM) ${.TARGET}
|
|
||||||
|
.mc.cf: ${M4FILES}
|
||||||
|
${RM} ${.TARGET}
|
||||||
(cd ${.CURDIR} && \
|
(cd ${.CURDIR} && \
|
||||||
$(M4) -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
|
${M4} -D_CF_DIR_=${CFDIR}/ ${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
|
||||||
$(CHMOD) $(ROMODE) ${.TARGET}
|
${CHMOD} ${ROMODE} ${.TARGET}
|
||||||
|
|
||||||
ALL= freebsd.cf
|
ALL= freebsd.cf
|
||||||
|
|
||||||
@ -29,35 +32,31 @@ INSTALL_CF= ${SENDMAIL_CF}
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(INSTALL_CF)
|
ALL+= ${INSTALL_CF}
|
||||||
ALL+= ${INSTALL_CF}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
# Additional .cf files to build
|
# Additional .cf files to build
|
||||||
.if defined(SENDMAIL_ADDITIONAL_MC)
|
.if defined(SENDMAIL_ADDITIONAL_MC)
|
||||||
ALL+= ${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
|
ALL+= ${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
CLEANFILES+=$(ALL)
|
CLEANFILES+= ${ALL}
|
||||||
|
|
||||||
all: $(ALL)
|
all: ${ALL}
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
|
|
||||||
.if defined(INSTALL_CF)
|
install: ${INSTALL_CF}
|
||||||
install: ${INSTALL_CF}
|
|
||||||
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
|
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
|
||||||
@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
|
@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
|
||||||
@false
|
@false
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(INSTALL_CF)
|
||||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
|
||||||
${DESTDIR}/etc/mail/sendmail.cf
|
${DESTDIR}/etc/mail/sendmail.cf
|
||||||
.else
|
|
||||||
install:
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Helper for src/etc/Makefile
|
# Helper for src/etc/Makefile
|
||||||
distribution: freebsd.cf freebsd.mc
|
distribution: freebsd.cf freebsd.mc ${INSTALL_CF}
|
||||||
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
|
.if (defined(SENDMAIL_MC) && defined(SENDMAIL_CF))
|
||||||
@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
|
@echo ">>> ERROR: Both SENDMAIL_CF and SENDMAIL_MC can not be set"
|
||||||
@false
|
@false
|
||||||
@ -76,9 +75,4 @@ distribution: freebsd.cf freebsd.mc
|
|||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
|
||||||
${DESTDIR}/var/log/sendmail.st
|
${DESTDIR}/var/log/sendmail.st
|
||||||
|
|
||||||
# this is overkill, but....
|
|
||||||
M4FILES!= find ${CFDIR} -type f -name '*.m4' -print
|
|
||||||
|
|
||||||
$(ALL): $(M4FILES)
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user