From d7c9cb6cc672e9fd1d5d3017856a058be61f5978 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 24 Nov 2010 10:42:05 -0500 Subject: [PATCH] Makefile exit on error, add QUIET variable. This will show warnings and errors: make QUIET= --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index aef7e44..4574174 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ CFLAGS = -O3 -static +QUIET = 2>/dev/null h: h.c - @a="g++ -fpermissive -includestdlib.h -includestdio.h -O3 -static -Wl,--omagic h.c -oh -DS=M=*d,*d=*c,*c=M -DD=0x0";$$a 2>/dev/null;$$a`nm h|grep qm|sed 's/0 .*$$/1/'` 2>/dev/null; echo "Now run ./h" + @a="g++ -fpermissive -includestdlib.h -includestdio.h -O3 -static -Wl,--omagic h.c -oh -DS=M=*d,*d=*c,*c=M -DD=0x0";$$a $(QUIET)&&$$a`nm h|grep qm|sed 's/0 .*$$/1/'` $(QUIET)&&echo "Now run ./h" clean: rm h