Do not build KerberosIV if Kerberos has been disabled in <bsd.own.mk>
authortholo <tholo@openbsd.org>
Sun, 28 Jan 1996 19:42:34 +0000 (19:42 +0000)
committertholo <tholo@openbsd.org>
Sun, 28 Jan 1996 19:42:34 +0000 (19:42 +0000)
Makefile

index 9c99f4e..08de728 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,11 @@ SUBDIR+= gnu
 
 SUBDIR+= sys
 
+.include <bsd.own.mk>  # for NOMAN, if it's there.
+
+.if defined(KERBEROS)
 SUBDIR+= kerberosIV
+.endif
 
 .if exists(regress)
 .ifmake !(install)
@@ -19,8 +23,6 @@ regression-tests:
        @(cd ${.CURDIR}/regress && ${MAKE} regress)
 .endif
 
-.include <bsd.own.mk>  # for NOMAN, if it's there.
-
 #beforeinstall:
 #      (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
 
@@ -34,7 +36,9 @@ build:
        ${MAKE} cleandir
        (cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
        (cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && ${MAKE} install)
+.if defined(KERBEROS)
        (cd ${.CURDIR}/kerberosIV && ${MAKE} build)
+.endif
        ${MAKE} depend && ${MAKE} && ${MAKE} install
 
 .include <bsd.subdir.mk>