aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/ApacheCNF/templates/helm/Makefile
blob: 5bcea8fbe2ee7d25615e189801a6a321ad639a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
vf-modules = apache
.PHONY: build clean $(vf-modules:=-build) $(vf-modules:-clean) $(vf-modules:=-package)

package: $(vf-modules:=-package)
build: $(vf-modules:=-build)
clean: $(vf-modules:=-clean)

$(vf-modules:=-package): %-package: %-build
	mv $(@:package=)*.tgz helm_$(@:-package=).tgz

$(vf-modules:=-build): %-build: %-clean
	helm repo add bitnami https://charts.bitnami.com/bitnami
	helm pull bitnami/apache --version 7.6.0

$(vf-modules:=-clean):
	rm -f $(@:-clean=)-*.tgz
	rm -f helm_$(@:-clean=).tgz