]> git.gir.st - minesVIiper.git/blob - Makefile
finally fix returning from alternate screen bug
[minesVIiper.git] / Makefile
1 .PHONY: all clean run test
2 all: 2017mines
3
4 2017mines: mines_2017.c schemes.h
5 gcc mines_2017.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\|note\|warn\|todo\|[^:]\/\/' mines_2017.c schemes.h
16
17 echo -e '\n\033[7m>80:\033[0m'
18 for myFILE in mines_2017.c schemes.h
19 do sed 's/\t/ /g' < $$myFILE|grep -En --color=always '.{81}'|sed "s/^/\x1B[35m$$myFILE:/"
20 done
21 endef
22 export TESTS
23 test:
24 sh -c "$$TESTS" |& less --RAW-CONTROL-CHARS --chop-long-lines
Imprint / Impressum