-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from City-of-Helsinki/UHF-11184
UHF-11184: Simplify toolkit
- Loading branch information
Showing
22 changed files
with
83 additions
and
854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
PHONY := | ||
PROJECT_DIR := $(dir $(lastword $(MAKEFILE_LIST))) | ||
|
||
# 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 | ||
|
||
# Include druidfi/tools config | ||
include $(PROJECT_DIR)/tools/make/Makefile | ||
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}' | ||
|
||
# Include project specific make files (if they exist) | ||
-include $(PROJECT_DIR)/tools/make/project/*.mk | ||
# Allow projects to specify makefiles. | ||
-include tools/make/project/*.mk | ||
|
||
# Project specific overrides for variables (if they exist) | ||
-include $(PROJECT_DIR)/tools/make/override.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) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.