-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 894 Bytes
/
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
ICANBOOGIE_INSTANCE = dev
SERVER_PORT = 8101
vendor:
@composer install
update:
@composer update
autoload: vendor
@composer dump-autoload
test: vendor
@phpunit
run:
@cd web && \
ICANBOOGIE_INSTANCE=$(ICANBOOGIE_INSTANCE) php -S localhost:$(SERVER_PORT) index.php
optimize: vendor
@composer dump-autoload -oa
@ICANBOOGIE_INSTANCE=$(ICANBOOGIE_INSTANCE) icanboogie optimize
unoptimize: vendor
@composer dump-autoload
@rm -f vendor/icanboogie-combined.php
@ICANBOOGIE_INSTANCE=$(ICANBOOGIE_INSTANCE) icanboogie clear cache
doc:
@mkdir -p docs
@apigen generate \
--source vendor/brickrouge/brickrouge/lib \
--destination docs/ \
--title "Brickrouge" \
--google-analytics "UA-8673332-4" \
--template-theme "bootstrap"
reset: cache-clear
@rm -Rf ./vendor
clear-cache:
@ICANBOOGIE_INSTANCE=$(ICANBOOGIE_INSTANCE) icanboogie clear cache
.PHONY: vendor optimize unoptimize