From: Erik van der Kouwe Date: Mon, 9 Aug 2010 05:51:01 +0000 (+0000) Subject: Make it possible again to compile the tests without installing GCC first X-Git-Tag: v3.1.8~84 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/verify-sign/verify.pl?a=commitdiff_plain;h=4e95b347a789e243b57e813626c73744ebabfab5;p=minix.git Make it possible again to compile the tests without installing GCC first --- diff --git a/test/Makefile b/test/Makefile index f75f6e4c9..a02893872 100644 --- a/test/Makefile +++ b/test/Makefile @@ -29,10 +29,10 @@ $(BIGOBJ): $(CC) $(CFLAGS) -o $@ $@.c $(GCCOBJ): - which $(GCC) >/dev/null && $(GCC) $(CFLAGS-GCC) -o $@ ${@:S/-gcc//}.c + if which $(GCC) >/dev/null 2>&1; then $(GCC) $(CFLAGS-GCC) -o $@ ${@:S/-gcc//}.c; fi $(GCCFPUOBJ): - which $(GCC) >/dev/null && $(GCC) $(CFLAGS-GCCFPU) -o $@ ${@:S/-gcc//}.c + if which $(GCC) >/dev/null 2>&1; then $(GCC) $(CFLAGS-GCCFPU) -o $@ ${@:S/-gcc//}.c; fi $(ROOTOBJ): $(CC) $(CFLAGS) $@.c @@ -113,4 +113,4 @@ test54: test54.c test55: test55.c test56: test56.c test57: test57.c test57loop.S - which $(GCC) >/dev/null && $(GCC) $(CFLAGS-GCC) -o $@ test57.c test57loop.S + if which $(GCC) >/dev/null 2>&1; then $(GCC) $(CFLAGS-GCC) -o $@ test57.c test57loop.S; fi