From 86d8ed00049aed4fc4b254c50132b71d1479ed8d Mon Sep 17 00:00:00 2001 From: Sunil Thaha <sthaha@redhat.com> Date: Thu, 1 Jul 2021 12:04:45 +1000 Subject: [PATCH] Fix make manifests not building every time Make target `manifests` has a dependency on build.sh which if untouched wouldn't generate the manifests after the first run. This patch fixes it by removing the `build.sh` dependency Signed-off-by: Sunil Thaha <sthaha@redhat.com> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b463b2d..23d3c233 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ generate: manifests **.md **.md: $(EMBEDMD_BIN) $(shell find examples) build.sh example.jsonnet $(EMBEDMD_BIN) -w `find . -name "*.md" | grep -v vendor` -manifests: examples/kustomize.jsonnet $(GOJSONTOYAML_BIN) vendor build.sh +manifests: examples/kustomize.jsonnet $(GOJSONTOYAML_BIN) vendor ./build.sh $< vendor: $(JB_BIN) jsonnetfile.json jsonnetfile.lock.json @@ -36,7 +36,7 @@ vendor: $(JB_BIN) jsonnetfile.json jsonnetfile.lock.json $(JB_BIN) install crdschemas: vendor - ./scripts/generate-schemas.sh + ./scripts/generate-schemas.sh .PHONY: validate validate: crdschemas manifests $(KUBECONFORM_BIN) -- GitLab