From 6e3e490b932fc2a6eaa10ef8f78a8959a94334eb Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 15 Jun 2016 07:08:31 +0000 Subject: [PATCH] Makefile: Add NULLSTREAM to factor out the NUL part of DONT_PRINT. git-svn-id: https://svn.eduke32.com/eduke32@5777 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index ee732ccb5..63f08c413 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -25,7 +25,9 @@ STRIP=$(CROSS)strip AS=nasm PKG_CONFIG=pkg-config -DONT_PRINT = > /dev/null 2>&1 +NULLSTREAM = /dev/null +DONT_PRINT = > $(NULLSTREAM) 2>&1 +DONT_PRINT_STDERR = 2> $(NULLSTREAM) DONT_FAIL = ; exit 0 # Override defaults that absolutely will not work. @@ -298,7 +300,7 @@ W_STRICT_OVERFLOW := -Wno-strict-overflow ifeq ($(HOSTPLATFORM),WINDOWS) # MSYS2 lets you create files named NUL but has a /dev/null. Go figure. ifeq (,$(wildcard /dev/null)) - DONT_PRINT = > NUL 2>&1 + NULLSTREAM = NUL endif endif