forked from lightbend/console-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1.53 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
# Top-level Makefile for creating the index of helm charts.
# ALL CHARTS MUST:
# - Have a file layout as described at https://docs.helm.sh/developing_charts/
# - Have a Makefile with recipes for at least the three targets:
# - 'lint': Should do preliminary checks to confirm the project is ready for packaging.
# - 'package': Should create the chart tarball and push it up
# to the helm-charts/docs directory.
# - 'test': Typically run by Travis to test the release. That could be as simple
# doing nothing, to firing up minikube and installing/running the package.
#
# The 'common.mk' file can be used to provide these targets if desired.
# Collection of charts to process.
# These are subdirectories of helm-charts. Add to the list as required.
#
# To package/test a subset, just define a value on the command line.
# e.g. "make package CHARTS=sample-project"
CHARTS = enterprise-suite enterprise-suite-latest reactive-sandbox #sample-project
# These targets must be implemented by the individual chart Makefiles
COMMONTARGETS = lint package test
# By default we package up the CHARTS and recreate the index
all: package index
# Build the index.yaml file.
index: init docs/index.yaml
docs/index.yaml: $(wildcard docs/*.tgz)
helm repo index docs --url https://repo.lightbend.com/helm-charts
init:
@helm init -c > /dev/null
$(COMMONTARGETS): $(CHARTS)
$(CHARTS):
$(info *** making $(MAKECMDGOALS) on $@)
$(MAKE) -C $@ $(MAKECMDGOALS)
clean:
rm docs/index.yaml
.PHONY: $(CHARTS) all index lint test package init clean