3 CFLAGS
:= -Wall
-Werror
-Wextra
-pedantic
7 mines
: mines.c mines.h schemes.h
8 $(CC
) $(CFLAGS
) $< -o
$@
13 .PHONY
: test_todo test_long
test
15 @echo
-e
'\033[7mTODOs:\033[0m'
16 @grep
-ni
--color
=always
'xxx\|todo\|[^:]\/\/' *.c
*.h
17 # grep -ni --color=always 'note\|warn' *.c *.h
20 @echo
-e
'\n\033[7m>80:\033[0m'
21 @for myFILE in
*.c
*.h
; do sed
's/\t/ /g' < $$myFILE|grep
-En
--color
=always
'.{81}'|sed
"s/^/\x1B[35m$$myFILE\x1B[36m:/"; done
23 test: test_todo test_long