aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/ApacheCNF/templates/helm/Makefile
blob: 21043b35b4e07dd9abc06ddda6f4b1650d95cdcf (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 8.12.0

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