1 .PHONY
: all clean run
test
4 2017mines
: mines.c mines.h schemes.h
5 gcc mines.c
-o
2017mines
14 echo
-e
'\033[7mTODOs:\033[0m'
15 grep
-ni
--color
=always
'xxx\|todo\|[^:]\/\/' *.c
*.h
16 # grep -ni --color=always 'note\|warn' *.c *.h
18 echo
-e
'\n\033[7m>80:\033[0m'
20 do sed
's/\t/ /g' < $$myFILE|grep
-En
--color
=always
'.{81}'|sed
"s/^/\x1B[35m$$myFILE\x1B[36m:/"
23 echo
-e
'\n\033[7m-Wall:\033[0m'
24 gcc mines.c
-o
2017mines
-Wall
-Werror
-Wextra
-pedantic
-fdiagnostics-color
=always
28 bash
-c
"$$TESTS" 2>&1| less
--RAW-CONTROL-CHARS
--chop-long-lines