-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·42 lines (31 loc) · 901 Bytes
/
Makefile
File metadata and controls
executable file
·42 lines (31 loc) · 901 Bytes
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
# customization
MODULE_NAME = "Brickrouge\CSSClassNames"
# do not edit the following lines
usage:
@echo "test: Runs the test suite.\ndoc: Creates the documentation.\nclean: Removes the documentation, the dependencies and the Composer files."
composer.phar:
@echo "Installing composer..."
@curl -s https://getcomposer.org/installer | php
vendor: composer.phar
@if [ ! -d "vendor" ] ; then \
php composer.phar install --dev ; \
fi
update: vendor
@php composer.phar update --prefer-source --dev
autoload: vendor
@php composer.phar dump-autoload
test: vendor
@phpunit
doc: vendor
@mkdir -p "docs"
@apigen \
--source ./ \
--destination docs/ --title $(MODULE_NAME) \
--exclude "*/tests/*" \
--exclude "*/composer/*" \
--template-config /usr/share/php/data/ApiGen/templates/bootstrap/config.neon
clean:
@rm -fR docs
@rm -fR vendor
@rm -f composer.lock
@rm -f composer.phar