-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
56 lines (47 loc) · 1.72 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
#
# Makefile: a component of the Grafizzi library.
#
# (c) 2012-2024 Frédéric G. MARAND <[email protected]>
#
# Grafizzi is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# Grafizzi is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Grafizzi, in the COPYING.LESSER.txt file. If not, see
# <http://www.gnu.org/licenses/>
#
all:
@echo "No default target. Use:"
@echo " \"make clean\" to delete test results."
@echo " \"make docs\" to generate documentation."
@echo " \"make test\" to run the test suite."
@echo " \"make cover\" to run the test suite with code coverage"
@echo " \"make purge\" to remove the composer files."
# Simple cleaning: delete locally generated files.
clean:
find . \( -name "php*.log" -o -name "*.dot" \) -delete
# Avoid deleting SVGs in php-code-coverage
find Grafizzi \( -name "*.svg" \) -delete
rm -fr coverage* doxygen .phpunit*cache
cover:
vendor/bin/phpunit Grafizzi --coverage-html=coverage -c phpunit.xml.dist
docs:
doxygen Grafizzi.dox
install:
composer install -nvv --prefer-source
install-ci:
composer install --prefer-dist --no-progress
lint:
vendor/bin/phpstan analyze -l 7 example Grafizzi
test:
vendor/bin/phpunit Grafizzi
# Stronger cleaning: will need net access to restore.
purge: clean
rm -fr composer.lock composer.phar vendor