From 0ee6e483660cdb77e37de76917c2b32ee03a0641 Mon Sep 17 00:00:00 2001 From: dbarranco Date: Mon, 22 Apr 2019 16:54:48 +0200 Subject: [PATCH] fix: place the initialisation of the submodules in the right Makefile --- Makefile | 2 +- kubeprod/Makefile | 6 +----- manifests/Makefile | 6 +++++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 1d7e291d8d..1c247f7101 100644 --- a/Makefile +++ b/Makefile @@ -79,4 +79,4 @@ HAS_AWLESS := $(shell command -v awless;) awless: ifndef HAS_AWLESS $(GO) get github.com/wallix/awless -endif +endif \ No newline at end of file diff --git a/kubeprod/Makefile b/kubeprod/Makefile index e455aadea9..c900c688b0 100644 --- a/kubeprod/Makefile +++ b/kubeprod/Makefile @@ -87,8 +87,4 @@ endif clean: rm -rf $(BINDIR) ./_dist -init-submodules: - git submodule init; \ - git submodule update --init --remote --recursive; \ - -.PHONY: init-submodules all release dist checksum test fmt vet archiver clean +.PHONY: all release dist checksum test fmt vet archiver clean diff --git a/manifests/Makefile b/manifests/Makefile index e8cca34fad..d21b420648 100644 --- a/manifests/Makefile +++ b/manifests/Makefile @@ -11,8 +11,12 @@ JFILES := \ validate: $(UNITTESTS:%.jsonnet=%.jsonnet-validate) validate: $(PLATFORMS:%.jsonnet=%.jsonnet-validate) +init-submodules: + git submodule init; \ + git submodule update --init --remote --recursive; + %.jsonnet-validate: %.jsonnet $(JFILES) $(KUBECFG) validate --ignore-unknown $< -.PHONY: all validate +.PHONY: all init-submodules validate .PHONY: %.jsonnet-validate