forked from rancher/ob-team-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (31 loc) · 1.43 KB
/
Copy pathMakefile
File metadata and controls
46 lines (31 loc) · 1.43 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
export PATH := $(CURDIR)/bin:$(PATH)
TARGETS := $(shell ls scripts|grep -ve "^util-")
# Default behavior for targets
$(TARGETS):
./scripts/$@
.DEFAULT_GOAL := default
# Charts Build Scripts
pull-scripts:
@command -v dep-fetch >/dev/null 2>&1 || { echo "WARNING: dep-fetch not found, skipping pull-scripts (expected in ci-image/charts environments)"; exit 0; }; dep-fetch sync
remove:
./scripts/remove-asset
rebase:
./scripts/charts-build-scripts/rebase
dev-prepare: pull-scripts
@charts-build-scripts prepare --soft-errors --debug
dev-prepare-cached: pull-scripts
@charts-build-scripts prepare --soft-errors --debug --useCache
prepare-cached: pull-scripts
@charts-build-scripts prepare --useCache
patch-cached: pull-scripts
@charts-build-scripts patch --useCache
charts-cached: pull-scripts
@charts-build-scripts charts --useCache
CHARTS_BUILD_SCRIPTS_TARGETS := prepare patch clean clean-cache charts list index unzip zip standardize template
$(CHARTS_BUILD_SCRIPTS_TARGETS): pull-scripts
@charts-build-scripts $@
.PHONY: $(TARGETS) $(CHARTS_BUILD_SCRIPTS_TARGETS) list
list-make:
@LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
# IMPORTANT: The line above must be indented by (at least one)
# *actual TAB character* - *spaces* do *not* work.