summaryrefslogtreecommitdiffstats
path: root/kubernetes/Makefile
diff options
context:
space:
mode:
authorUbuntu <dgl@research.att.com>2019-12-12 23:01:28 +0000
committerBorislav Glozman <Borislav.Glozman@amdocs.com>2019-12-18 11:36:11 +0000
commit5e0f340c9a9fb82be83585739093b265946c3b11 (patch)
tree65da1aafa174090058ae6c9763b33ddf113fba5b /kubernetes/Makefile
parent8501d7cee5a887f9e19d5fe3671ef8180bce526b (diff)
Give user link to submodule instructions
Issue-ID: OOM-2245 Signed-off-by: Ubuntu <dgl@research.att.com> Change-Id: Ie5e63a847904c67be1804e97afac8b2a058685a6 Signed-off-by: Ubuntu <dgl@research.att.com>
Diffstat (limited to 'kubernetes/Makefile')
-rw-r--r--kubernetes/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/kubernetes/Makefile b/kubernetes/Makefile
index fa63bd8942..3f41c3cc4b 100644
--- a/kubernetes/Makefile
+++ b/kubernetes/Makefile
@@ -20,12 +20,13 @@ OUTPUT_DIR := $(ROOT_DIR)/dist
PACKAGE_DIR := $(OUTPUT_DIR)/packages
SECRET_DIR := $(OUTPUT_DIR)/secrets
-EXCLUDES := config oneclick readiness test dist helm $(PARENT_CHART) dcae
+SUBMODS := robot aai
+EXCLUDES := config oneclick readiness test dist helm $(PARENT_CHART) dcae $(SUBMODS)
HELM_CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.))) $(PARENT_CHART)
-.PHONY: $(EXCLUDES) $(HELM_CHARTS)
+.PHONY: $(EXCLUDES) $(HELM_CHARTS) $(SUBMODS)
-all: $(COMMON_CHARTS_DIR) $(HELM_CHARTS) plugins
+all: $(COMMON_CHARTS_DIR) $(SUBMODS) $(HELM_CHARTS) plugins
$(COMMON_CHARTS):
@echo "\n[$@]"
@@ -35,6 +36,18 @@ $(HELM_CHARTS):
@echo "\n[$@]"
@make package-$@
+$(SUBMODS):
+ @echo "\n[$@]"
+ @make submod-$@
+ @make package-$@
+
+submod-%:
+ @make $*/requirements.yaml
+
+%/requirements.yaml:
+ $(error Submodule $* needs to be retrieved from gerrit. See https://wiki.onap.org/display/DW/OOM+-+Development+workflow+after+code+transfer+to+tech+teams ); fi
+
+
make-%:
@if [ -f $*/Makefile ]; then make -C $*; fi