-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (56 loc) · 1.66 KB
/
Makefile
File metadata and controls
75 lines (56 loc) · 1.66 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash
.EXPORT_ALL_VARIABLES:
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.SILENT:
PHP_VERSION := 8.3
##@
##@ Frontend resources related tasks
##@
.PHONY: npm-update
npm-update: ##@ Update node modules
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s npm update
.PHONY: npm-install
npm-install: ##@ Install node modules
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s npm install
.PHONY: build-resources
build-resources: npm-install
build-resources: ##@ Build frontend resource files
echo "Build frontend resources started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s npm run build
echo "Build frontend resources finished"
##@
##@ Commands for local task
##@
.PHONY: install
install-build: ##@ Composer install
echo "Installed build tools started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s composerInstall
echo "Installed build tools finished"
.PHONY: cleanup
cleanup: ##@ Cleanup
echo "Cleanup started"
Build/Scripts/runTests.sh -s clean
Build/Scripts/additionalTests.sh -s clean
echo "Cleanup finished";
.PHONY: functional-test
functional-test: ##@ Run functional tests
Build/Scripts/runTests.sh -x -p ${PHP_VERSION} -d sqlite -s functional Tests/Functional
help:
@printf "\nUsage: make \033[32m<command>\033[0m\n"
grep -F -h "##@" $(MAKEFILE_LIST) | \
grep -F -v grep -F | \
grep -F -v awk -F | \
awk 'BEGIN {FS = ":*[[:space:]]*##@[[:space:]]*"}; \
{ \
if ($$2 == "") \
printf ""; \
else if ($$0 ~ /^#/) \
printf "\n%s\n\n", $$2; \
else if ($$1 == "") \
printf " %-30s%s\n", "", $$2; \
else \
printf " \033[32m%-30s\033[0m %s\n", $$1, $$2; \
}'
.DEFAULT_GOAL := help