Skip to content
Snippets Groups Projects
Commit ce620e42 authored by Martina Müller's avatar Martina Müller
Browse files

chore: add api-docs as a dependency to targets in Makefile

parent ad5869fa
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ EXECUTABLE := tank
version := $(shell grep -oP 'app\.Version = "\K(.*)(?=")' cmd/tank/main.go)
all: build
.PHONY: vet format ui build clean distclean
.PHONY: vet format ui build clean distclean api-docs
init.dev::
go get -u github.com/swaggo/swag/cmd/swag
......@@ -59,10 +59,10 @@ api-docs:
# build target actually depends on api-docs
# to allow building binary without generating api docs first, we put api/docs/docs.go under version control
# see #30
build: ui
build: ui api-docs
$(GOCMD) build -o $(EXECUTABLE) ./cmd/tank
dev:
dev: api-docs
$(GOCMD) build -o $(EXECUTABLE) -tags=dev ./cmd/tank
test-all:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment