]> git.gir.st - minesVIiper.git/blob - Makefile
add compile time flag 'FLAGALL_ON_CHOORD'
[minesVIiper.git] / Makefile
1 .PHONY: all clean
2
3 CFLAGS := -Wall -Werror -Wextra -pedantic
4
5 all: mines
6
7 mines: mines.c mines.h schemes.h
8 $(CC) $(CFLAGS) $< -o $@
9
10 clean:
11 rm -f mines
12
13 .PHONY: test_todo test_long test
14 test_todo:
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
18
19 test_long:
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
22
23 test: test_todo test_long
Imprint / Impressum