-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 834 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (24 loc) · 834 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
# General.
SHELL = /bin/bash
TOPDIR = $(shell git rev-parse --show-toplevel)
CHARTS = $(shell ls charts)
TOPTARGETS = ci-linters dist
help: # Display help
@awk -F ':|##' \
'/^[^\t].+?:.*?##/ {\
printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF \
}' $(MAKEFILE_LIST) | sort
default: setup
bootstrap: ## Install system tools
@helm version -c || brew cask install kubernetes-helm
clean: ## Remove unwanted files in this project (!DESTRUCTIVE!)
@cd $(TOPDIR) && git clean -ffdx && git reset --hard
publish: ## Publish the charts
@bash $(TOPDIR)/.circleci/publish.sh
setup: ## Setup the full environment (default)
python3 -m venv venv
. venv/bin/activate && pip install moban==0.1.3
$(TOPTARGETS): $(CHARTS)
$(CHARTS):
@$(MAKE) -C charts/$@ $(MAKECMDGOALS)
.PHONY: bootstrap clean publish setup $(CHARTS) $(TOPTARGETS)