-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 868 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 868 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
PHONY :=
PROJECT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
IS_CONTAINER := $(shell test ${CONTAINER_RUNNING} && echo true || echo false)
# Colors
NO_COLOR=\033[0m
CYAN=\033[36m
GREEN=\033[0;32m
RED=\033[0;31m
YELLOW=\033[0;33m
ENV := local
# Include project env vars (if exists)
-include .env
-include .env.local
define step
@printf "\n⭐ ${YELLOW}${1}${NO_COLOR}\n"
endef
PHONY += help
help: ## List all make commands
$(call step,Available make commands:\n)
@cat $(MAKEFILE_LIST) | grep -e "^[a-zA-Z_\-]*: *.*## *" | awk 'BEGIN {FS = ":.*?## "}; {printf "${CYAN}%-30s${NO_COLOR} %s\n", $$1, $$2}'
# Allow projects to specify makefiles.
-include tools/make/project/*.mk
include tools/make/docker.mk
include tools/make/composer.mk
include tools/make/drupal.mk
include tools/make/git.mk
include tools/make/theme.mk
include tools/make/qa.mk
.PHONY: $(PHONY)