aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/Makefile
blob: 5cae204b920adecde14c1efd4952c8f4fe287a52 (plain)
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
.PHONY: all clean helm base cba clean_all
ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
CBA_NAME ?= CBA

clean_all:
	$(MAKE) clean
	$(MAKE) all

#Can't use .csar extension or SDC will panic
all: csar/ helm base cba
	cd csar/ && zip -r $(ONBOARDING_PACKAGE_NAME).zip .
	mv csar/$(ONBOARDING_PACKAGE_NAME).zip .

helm: csar/
	make -C helm
	mv helm/*.tgz csar/

base: csar/
	cp base/* csar/

cba: csar/
	cd cba/ && zip -r $(CBA_NAME).zip .
	mv cba/$(CBA_NAME).zip csar/

csar/:
	mkdir csar/

clean:
	rm -rf csar/
	rm -f $(ONBOARDING_PACKAGE_NAME).zip