aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authorAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2018-02-23 20:54:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-23 20:54:00 +0000
commitecd6153f14f654c65837b7515f40f75ad8809241 (patch)
tree3e791c3ac46d67d23b7a9b6bbd780e761f9a57c3 /kubernetes/common
parentf50dccfd3067116ccbf9e26aef6d9b5aa13f85fd (diff)
parentae51de89e201b39aee5ef5d414b28eb946f33209 (diff)
Merge "Add Makefile to OOM project"
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/kubernetes/common/Makefile b/kubernetes/common/Makefile
new file mode 100644
index 0000000000..1900f31a44
--- /dev/null
+++ b/kubernetes/common/Makefile
@@ -0,0 +1,25 @@
+EXCLUDES := test
+HELM_CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
+
+.PHONY: $(EXCLUDES) $(HELM_CHARTS)
+
+all: $(HELM_CHARTS)
+
+$(HELM_CHARTS):
+ @echo "\n[$@]"
+ @make lint-$@
+
+make-%:
+ @if [ -f $*/Makefile ]; then make -C $*; fi
+
+dep-%: make-%
+ @if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
+
+lint-%: dep-%
+ @if [ -f $*/Chart.yaml ]; then helm lint $*; fi
+
+clean:
+ @rm -f */requirements.lock
+ @rm -f *tgz */charts/*tgz
+%:
+ @: \ No newline at end of file