-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 823 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 823 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
# customization
PACKAGE_NAME = icybee/module-users
PACKAGE_VERSION = 3.0.0
COMPOSER_ENV = COMPOSER_ROOT_VERSION=$(PACKAGE_VERSION)
# 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."
vendor:
@$(COMPOSER_ENV) composer install
update:
@$(COMPOSER_ENV) composer update
autoload: vendor
@$(COMPOSER_ENV) composer dump-autoload
test: vendor
@phpunit
test-coverage: vendor
@mkdir -p build/coverage
@phpunit --coverage-html build/coverage
doc: vendor
@mkdir -p build/docs
@apigen generate \
--source lib \
--destination build/docs/ \
--title "$(PACKAGE_NAME) v$(PACKAGE_VERSION)" \
--template-theme "bootstrap"
clean:
@rm -fR build
@rm -fR vendor
@rm -f composer.lock