disable the objwarn warning if NOOBJ is set.. We have quite a few places

in the tree that use things like bsd.prog.mk just to get the default
targets like install, tags, obj, clean, cleandir, cleandepend, but do not
actually build anything there.
This commit is contained in:
Peter Wemm 1996-09-19 06:58:26 +00:00
parent 25c04ed294
commit 32b115257e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18373

View File

@ -1,4 +1,4 @@
# $Id: bsd.obj.mk,v 1.8 1996/09/05 17:53:13 bde Exp $
# $Id: bsd.obj.mk,v 1.9 1996/09/18 06:09:17 swallace Exp $
#
# The include file <bsd.obj.mk> handles creating 'obj' directory
# and cleaning up object files, log files etc.
@ -42,14 +42,16 @@ CANONICALOBJDIR:=/usr/obj${.CURDIR}
# Warn of unorthodox object directory
#
objwarn:
.if !defined(NOOBJ)
.if ${.OBJDIR} == ${.CURDIR}
${ECHO} "Warning: Object directory not changed from original ${.CURDIR}"
@${ECHO} "Warning: Object directory not changed from original ${.CURDIR}"
.elif !defined(MAKEOBJDIRPREFIX) && ${.OBJDIR} != ${CANONICALOBJDIR}
.if !defined(MAKEOBJDIR)
${ECHO} "Warning: Using ${.OBJDIR} as object directory instead of\
@${ECHO} "Warning: Using ${.OBJDIR} as object directory instead of\
canonical ${CANONICALOBJDIR}"
.endif
.endif
.endif