Skip to content
Browse files

Makefile exit on error, add QUIET variable.

This will show warnings and errors:
    make QUIET=
  • Loading branch information...
1 parent 78416ce commit d7c9cb6cc672e9fd1d5d3017856a058be61f5978 Joel Martin committed Nov 24, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
View
3 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

0 comments on commit d7c9cb6

Please sign in to comment.
Something went wrong with that request. Please try again.