-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
57 lines (40 loc) · 1.7 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
###############################################################################
# ONYX Main Makefile
###############################################################################
HOST_SOURCE_PATH=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
USER_ID=$(shell id -u)
GROUP_ID=$(shell id -g)
export USER_ID
export GROUP_ID
#------------------------------------------------------------------------------
-include vendor/onyx/core/makefiles/wizards/namespace.mk
-include vendor/onyx/core/makefiles/wizards/standard.mk
include makefiles/composer.mk
-include makefiles/console.mk
include makefiles/docker.mk
include makefiles/karma.mk
include makefiles/phpunit.mk
include makefiles/qa.mk
include makefiles/webpack.mk
include makefiles/whalephant.mk
#------------------------------------------------------------------------------
.DEFAULT_GOAL := help
init: var install-dependencies config webpack gitignore .env ## Initialize project
.env:
cp .env.example .env
var:
mkdir -m a+w var
install-dependencies: composer-install npm-install
gitignore:
sed '/^composer.lock$$/d' -i .gitignore
help:
@echo "========================================"
@echo "ONYX Makefile"
@echo "========================================"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo "========================================"
#------------------------------------------------------------------------------
clean: clean-composer clean-docker clean-karma clean-phpunit clean-qa clean-webpack clean-whalephant
-rm -rf var
#------------------------------------------------------------------------------
.PHONY: init install-dependencies gitignore help clean