From 193f471d33346115147a143b407dc64d93bd6ebc Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Thu, 1 Mar 2001 03:51:18 +0000 Subject: [PATCH] Don't build/install sendmail related items if NO_SENDMAIL is set. Submitted by: ru --- etc/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/Makefile b/etc/Makefile index d0e38928ebaf..05ecdbea5986 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,7 +1,9 @@ # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 # $FreeBSD$ +.if !defined(NO_SENDMAIL) SUBDIR= sendmail +.endif BIN1= amd.map apmd.conf auth.conf \ crontab csh.cshrc csh.login csh.logout \ @@ -73,11 +75,13 @@ distribution: ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ - ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); \ ( cd ${.CURDIR}/isdn; ${MAKE} install ); \ pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) +.if !defined(NO_SENDMAIL) + ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); +.endif .if !defined(NOUUCP) ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) .endif