]> git.lizzy.rs Git - micro.git/blobdiff - Makefile
Fix makefile tags dependencies
[micro.git] / Makefile
index 76da995305ca10f0d3c0ef636e968eedb5d49af1..4d536210d3c145f11929355ce74ac9945a0317f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,9 @@ build:
 build-dbg:
        go build -ldflags "-s -w $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
 
+build-tags: fetch-tags
+       go build -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
+
 # Builds micro after building the runtime and checking dependencies
 build-all: runtime build
 
@@ -35,6 +38,9 @@ install-all: runtime install
 install-quick:
        go install -ldflags "-s -w $(GOVARS) $(ADDITIONAL_GO_LINKER_FLAGS)"  ./cmd/micro
 
+fetch-tags:
+       git fetch --tags
+
 # Builds the runtime
 runtime:
        git submodule update --init