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
This commit is contained in:
hendricks266 2016-06-15 07:08:31 +00:00
parent 619f3a7a8a
commit 6e3e490b93

View file

@ -25,7 +25,9 @@ STRIP=$(CROSS)strip
AS=nasm AS=nasm
PKG_CONFIG=pkg-config 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 DONT_FAIL = ; exit 0
# Override defaults that absolutely will not work. # Override defaults that absolutely will not work.
@ -298,7 +300,7 @@ W_STRICT_OVERFLOW := -Wno-strict-overflow
ifeq ($(HOSTPLATFORM),WINDOWS) ifeq ($(HOSTPLATFORM),WINDOWS)
# MSYS2 lets you create files named NUL but has a /dev/null. Go figure. # MSYS2 lets you create files named NUL but has a /dev/null. Go figure.
ifeq (,$(wildcard /dev/null)) ifeq (,$(wildcard /dev/null))
DONT_PRINT = > NUL 2>&1 NULLSTREAM = NUL
endif endif
endif endif