]> git.gir.st - minesVIiper.git/blob - Makefile
less noisey `make test'
[minesVIiper.git] / Makefile
1 .PHONY: all clean run test
2 all: 2017mines
3
4 2017mines: mines.c mines.h schemes.h
5 gcc mines.c -o 2017mines
6
7 run: 2017mines
8 ./2017mines
9
10 clean:
11 rm -f 2017mines
12
13 define TESTS
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
17
18 echo -e '\n\033[7m>80:\033[0m'
19 for myFILE in *.c *.h
20 do sed 's/\t/ /g' < $$myFILE|sed 's|//.*$$||'|grep -En --color=always '.{81}'|sed "s/^/\x1B[35m$$myFILE\x1B[36m:/"
21 done
22
23 echo -e '\n\033[7m-Wall:\033[0m'
24 gcc mines.c -o 2017mines -Wall -Werror -Wextra -pedantic -fdiagnostics-color=always
25 endef
26 export TESTS
27 test:
28 bash -c "$$TESTS" 2>&1| less --RAW-CONTROL-CHARS --chop-long-lines
Imprint / Impressum