-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (40 loc) · 1.41 KB
/
Makefile
File metadata and controls
50 lines (40 loc) · 1.41 KB
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
C=/usr/bin/composer.phar
.PHONY: docs tests
default:
##
## Makefile for SameAs Lite
##
## make install install minimum requirements to run
## make install-dev install tools for development
## make checks code style and formatting checks
## make docs build docs
## make clean-docs remove docs
## make clean-dist remove everything and revert back to distribution state
## make tarball create the tar.gz for distribution
##
install:
# install libraries required to run
$C update --no-dev
install-dev:
# install libraries to run tests, generate documentation, etc
$C update --dev
checks:
# checking code style
-vendor/bin/phpcbf --ignore=vendor/*,dev-tools/*,components/* --extensions=js,php --standard=dev-tools/CodeStandard ./
-vendor/bin/phpcs --ignore=vendor/*,dev-tools/*,components/* --extensions=js,php --standard=dev-tools/CodeStandard --colors --report-width=160 ./
tests:
# run tests
vendor/bin/phpunit --bootstrap vendor/autoload.php tests/phpUnit/
docs:
# produce class documentation
php vendor/bin/phpdoc -c ./dev-tools/phpdoc-config.xml
#see docs/index.html &
clean-docs:
# remove class documentation
rm -rf docs/ dev-tools/phpdoc-tmp/ /tmp/phpdoc-twig-cache
clean-dist: clean-docs
# remove everything we installed
rm -rf vendor composer.lock
tarball: clean-dist
# create tar.gz
tar zcvf sameAsLite-dev.tar.gz composer.json index.php Makefile dev-tools src tests .htaccess