From 4811f931af0ee3788e74b57c1b4d369f03d366e1 Mon Sep 17 00:00:00 2001 From: Alejandro Visiedo Date: Tue, 30 Jan 2024 16:05:29 +0100 Subject: [PATCH] chore(HMS-2680): clean-up make rules Remove some old rules remaining when the openapi was specified on the backend repository. Signed-off-by: Alejandro Visiedo --- Makefile | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Makefile b/Makefile index 06cd8f9..56b8d13 100644 --- a/Makefile +++ b/Makefile @@ -36,27 +36,6 @@ $(NODE_BIN)/%: package.json package-lock.json npm install touch $(NODE_BIN)/* -$(OAPI_CODEGEN): - GOBIN=$(CURDIR)/$(BIN) go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@$(OAPI_CODEGEN_VERSION) - -.PHONY: oapi-codegen -oapi-codegen: \ - $(TMP)/public/spec.gen.go $(TMP)/public/server.gen.go $(TMP)/public/types.gen.go \ - $(TMP)/internal/spec.gen.go $(TMP)/internal/server.gen.go $(TMP)/internal/types.gen.go \ - $(TMP)/metrics/spec.gen.go $(TMP)/metrics/server.gen.go $(TMP)/metrics/types.gen.go - -$(TMP)/%/spec.gen.go: %.openapi.yaml $(OAPI_CODEGEN) - @mkdir -p $(dir $@) - $(OAPI_CODEGEN) -generate spec -package $* -o $(TMP)/$*/spec.gen.go $< - -$(TMP)/%/server.gen.go: %.openapi.yaml $(OAPI_CODEGEN) - @mkdir -p $(dir $@) - $(OAPI_CODEGEN) -generate server -package $* -o $(TMP)/$*/server.gen.go $< - -$(TMP)/%/types.gen.go: %.openapi.yaml $(OAPI_CODEGEN) - @mkdir -p $(dir $@) - $(OAPI_CODEGEN) -generate types -package $* -o $(TMP)/$*/types.gen.go $< - .PHONY: validate validate: $(VALIDATOR) $(VALIDATOR) public.openapi.yaml