forked from exflickr/flamework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (25 loc) · 804 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
all: clean todo
clean:
rm -f ./TODO.txt
todo: TODO.txt
TODO.txt:
@echo "Generating TODO.txt file"
@echo "# This file was generated automatically by grep-ing for 'TO DO' in the source code." > ./TODO.txt
@echo "# This file is meant as a pointer to the actual details in the files themselves." >> TODO.txt
@echo "# This file was created "`date` >> TODO.txt
@echo "" >> TODO.txt
@-grep -n -r -e "TO DO" www >> TODO.txt
@-grep -n -r -e "TO DO" bin >> TODO.txt
@-grep -n -r -e "TODO" www >> TODO.txt
@-grep -n -r -e "TODO" bin >> TODO.txt
templates:
php -q ./bin/compile-templates.php
secret:
php -q ./bin/generate_secret.php
test:
prove -v --exec 'php --php-ini ./tests/php.ini' ./tests/*.t
cover:
rm -f ./tests/coverage.state
rm -rf ./coverage
-make test
php -q ./tests/coverage.php