implement MAKEVERBOSE for rules which are of the form:
@cmp -s ${.ALLSRC} ${.TARGET} || ( echo cmd && cmd )
This commit is contained in:
parent
52a5f69154
commit
f1e290c260
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.inc.mk,v 1.25 2003/08/03 09:23:16 lukem Exp $
|
||||
# $NetBSD: bsd.inc.mk,v 1.26 2003/10/18 16:41:19 lukem Exp $
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
@ -15,7 +15,8 @@ incinstall:: # ensure existence
|
||||
# -c is forced on here, in order to preserve modtimes for "make depend"
|
||||
__incinstall: .USE
|
||||
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
||||
(echo "${INSTALL_FILE:N-c} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
(${_MKSHMSG} "install ${.TARGET}"; ${_MKSHCMD}\
|
||||
echo "${INSTALL_FILE:N-c} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
-m ${NONBINMODE} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}" && \
|
||||
${INSTALL_FILE:N-c} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
-m ${NONBINMODE} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET})
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.kinc.mk,v 1.29 2003/08/03 09:23:16 lukem Exp $
|
||||
# $NetBSD: bsd.kinc.mk,v 1.30 2003/10/18 16:41:19 lukem Exp $
|
||||
|
||||
# Variables:
|
||||
#
|
||||
@ -42,7 +42,8 @@ ${DESTDIR}${INCSDIR}:
|
||||
# -c is forced on here, in order to preserve modtimes for "make depend"
|
||||
__incinstall: .USE
|
||||
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
||||
(echo "${INSTALL_FILE:N-c} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
(${_MKSHMSG} "install ${.TARGET}"; ${_MKSHCMD}\
|
||||
echo "${INSTALL_FILE:N-c} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
-m ${NONBINMODE} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET}" && \
|
||||
${INSTALL_FILE:N-c} -c -o ${BINOWN} -g ${BINGRP} \
|
||||
-m ${NONBINMODE} ${SYSPKGTAG} ${.ALLSRC} ${.TARGET})
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.man.mk,v 1.85 2003/10/18 15:33:59 lukem Exp $
|
||||
# $NetBSD: bsd.man.mk,v 1.86 2003/10/18 16:41:19 lukem Exp $
|
||||
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
|
||||
|
||||
.include <bsd.init.mk>
|
||||
@ -44,9 +44,9 @@ MANCOMPRESS:= | ${MANCOMPRESS}
|
||||
.endif
|
||||
|
||||
__installpage: .USE
|
||||
# XXX_MKMSG
|
||||
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
||||
(echo "${INSTALL_FILE} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
||||
(${_MKSHMSG} "install ${.TARGET}"; ${_MKSHCMD}\
|
||||
echo "${INSTALL_FILE} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
||||
${SYSPKGDOCTAG} ${.ALLSRC} ${.TARGET}" && \
|
||||
${INSTALL_FILE} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
||||
${SYSPKGDOCTAG} ${.ALLSRC} ${.TARGET})
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.sys.mk,v 1.96 2003/10/18 15:33:59 lukem Exp $
|
||||
# $NetBSD: bsd.sys.mk,v 1.97 2003/10/18 16:41:19 lukem Exp $
|
||||
#
|
||||
# Build definitions used for NetBSD source tree builds.
|
||||
|
||||
@ -10,12 +10,18 @@ MAKEVERBOSE?= 2
|
||||
.if ${MAKEVERBOSE} == 0
|
||||
_MKMSG= @\#
|
||||
_MKCMD= @
|
||||
_MKSHMSG= : echo
|
||||
_MKSHCMD= :
|
||||
.elif ${MAKEVERBOSE} == 1
|
||||
_MKMSG= @echo ' '
|
||||
_MKCMD= @
|
||||
_MKSHMSG= echo ' '
|
||||
_MKSHCMD= :
|
||||
.else # MAKEVERBOSE == 2 ?
|
||||
_MKMSG= @echo '\# '
|
||||
_MKCMD=
|
||||
_MKSHMSG= echo '\# '
|
||||
_MKSHCMD=
|
||||
.endif
|
||||
|
||||
.if defined(WARNS)
|
||||
|
Loading…
Reference in New Issue
Block a user