aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2014-02-25 01:36:15 +0800
committerrene <rene@FreeBSD.org>2014-02-25 01:36:15 +0800
commit66d2ce2b3606ee413ea44b1108f7d2c5b3690697 (patch)
treeda0bd18df4a7beb4e5353a1bab59c411959b9ef6 /Mk
parent98a16492336defa8406107bc721626049e0fd47f (diff)
downloadfreebsd-ports-gnome-66d2ce2b3606ee413ea44b1108f7d2c5b3690697.tar.gz
freebsd-ports-gnome-66d2ce2b3606ee413ea44b1108f7d2c5b3690697.tar.zst
freebsd-ports-gnome-66d2ce2b3606ee413ea44b1108f7d2c5b3690697.zip
Add a new flag QUIET to make targets quiet, currently only 'checkpatch'
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 00e7305af2f9..60c14b98a90d 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2155,6 +2155,9 @@ PATCH_DEBUG_TMP= no
PATCH_ARGS?= -d ${PATCH_WRKSRC} --forward --quiet -E ${PATCH_STRIP}
PATCH_DIST_ARGS?= --suffix ${DISTORIG} -d ${PATCH_WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP}
.endif
+.if !defined(QUIET)
+PATCH_SILENT= PATCH_SILENT=yes
+.endif
.if defined(BATCH)
PATCH_ARGS+= --batch
PATCH_DIST_ARGS+= --batch
@@ -3560,7 +3563,7 @@ do-patch:
PATCHES_APPLIED="$$PATCHES_APPLIED $$i" ; \
else \
${ECHO_MSG} `${ECHO_CMD} "=> Patch $$i failed to apply cleanly." | ${SED} "s|${PATCHDIR}/||"` ; \
- if [ x"$$PATCHES_APPLIED" != x"" ]; then \
+ if [ x"$$PATCHES_APPLIED" != x"" -a ${PATCH_SILENT} != "yes" ]; then \
${ECHO_MSG} `${ECHO_CMD} "=> Patch(es) $$PATCHES_APPLIED applied cleanly." | ${SED} "s|${PATCHDIR}/||g"` ; \
fi; \
${FALSE} ; \
@@ -4283,7 +4286,7 @@ pretty-print-www-site:
.if !target(checkpatch)
checkpatch:
- @cd ${.CURDIR} && ${MAKE} PATCH_CHECK_ONLY=yes ${_PATCH_DEP} ${_PATCH_REAL_SEQ}
+ @cd ${.CURDIR} && ${MAKE} ${PATCH_SILENT} PATCH_CHECK_ONLY=yes ${_PATCH_DEP} ${_PATCH_REAL_SEQ}
.endif
# Reinstall