1 .PHONY: all clean helm base clean_all package cba jsonlint_cba
2 NATIVE_ONBOARDING_PACKAGE_NAME ?= native_cnf_k8s_demo
4 _type_files = $(wildcard cba/Definitions/*_types.json)
11 #Can't use .csar extension or SDC will panic
12 all: package helm base cba
13 cd package_native/ && zip -r $(NATIVE_ONBOARDING_PACKAGE_NAME).zip .
14 mv package_native/$(NATIVE_ONBOARDING_PACKAGE_NAME).zip .
15 cp $(NATIVE_ONBOARDING_PACKAGE_NAME).zip ../automation/vsp/
19 mv helm/helm_*.tgz package_native/
22 cp base_native/* package_native/
25 cd cba/ && zip -r $(CBA_NAME).zip . -x pom.xml .idea/\* target/\*
26 mv cba/$(CBA_NAME).zip package_native/
32 rm -rf package_native/
33 rm -f $(NATIVE_ONBOARDING_PACKAGE_NAME).zip
35 jsonlint_cba: $(_type_files)
38 #This shouldn't be PHONY, but it's easier now to define this way
39 .PHONY: $(_type_files)
41 @which jq expand unexpand sponge >/dev/null
42 jq -S . <$@ | unexpand -t 2 | expand -t 4 | sponge $@