-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (43 loc) · 1.39 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
.PHONY: force-update clean prepare lint \
pdepend phpmd phpcs phpcpd docs test
lint:
find src -name '*.php' -exec php -l {} \;
check: lint
docs:
doxygen doxygen.conf
composer.phar:
curl -sS https://getcomposer.org/installer | php
vendor/autoload.php: composer.lock
./composer.phar dumpautoload
composer.lock: composer.json composer.phar
./composer.phar update
update: composer.phar
./composer.phar install
force-update: composer.phar
./composer.phar selfupdate
./composer.phar update
test: vendor/autoload.php
vendor/bin/phpunit -c phpunit.xml
clean:
rm -fr build/coverage
rm -fr build/logs
rm -fr build/pdepend
rm -fr build/phpdox
rm -fr build/docs
prepare: vendor/autoload.php
mkdir -p build/api
mkdir -p build/coverage
mkdir -p build/logs
mkdir -p build/pdepend
mkdir -p build/phpdox
mkdir -p build/docs
pdepend: prepare
vendor/bin/pdepend --jdepend-xml=build/logs/jdepend.xml --jdepend-chart=build/pdepend/dependencies.svg --overview-pyramid=build/pdepend/overview-pyramid.svg src
phpmd: prepare
vendor/bin/phpmd src xml phpmd.xml --reportfile build/logs/pmd.xml || echo
phpcs: prepare
vendor/bin/phpcs --report=checkstyle --report-file=build/logs/checkstyle.xml --standard=PSR2 --extensions=php --ignore=autoload.php src || echo
phpcpd: prepare
vendor/bin/phpcpd --log-pmd build/logs/pmd-cpd.xml src
all: clean prepare lint pdepend phpmd phpcs phpcpd docs