Skip to content

Commit

Permalink
Makefile exit on error, add QUIET variable.
Browse files Browse the repository at this point in the history
This will show warnings and errors:
    make QUIET=
  • Loading branch information
Joel Martin committed Nov 24, 2010
1 parent 78416ce commit d7c9cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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.