]> Zhao Yanbai Git Server - minix.git/commitdiff
Make it possible again to compile the tests without installing GCC first
authorErik van der Kouwe <erik@minix3.org>
Mon, 9 Aug 2010 05:51:01 +0000 (05:51 +0000)
committerErik van der Kouwe <erik@minix3.org>
Mon, 9 Aug 2010 05:51:01 +0000 (05:51 +0000)
test/Makefile

index f75f6e4c972cb1b49a37618563c9de888d8d45bb..a028938725f7a30e32d62f299115b7e41fa81a1d 100644 (file)
@@ -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