From 2c2a008a2c1b25d47a81f5d7836a510d4643273a Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 28 Aug 2017 14:36:29 +0200 Subject: [PATCH] Suppress error output of "which" --- qcsrc/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/Makefile b/qcsrc/Makefile index bd17dad6aa..bfea08b5f9 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -14,17 +14,17 @@ ENABLE_DEBUGTRACE ?= 0 BUILD_MOD ?= ifndef ZIP - ifneq ($(shell which zip),) + ifneq ($(shell which zip 2>/dev/null),) ZIP := zip -9 endif - ifneq ($(shell which 7z),) + ifneq ($(shell which 7z 2>/dev/null),) ZIP := 7z a -tzip -mx=9 endif - ifneq ($(shell which 7za),) + ifneq ($(shell which 7za 2>/dev/null),) ZIP := 7za a -tzip -mx=9 endif ifndef ZIP - $(warning "No zip in ($(PATH))") + $(warning "No zip / 7z / 7za in ($(PATH))") ZIP := : zip_not_found endif endif -- 2.39.2