]> git.lizzy.rs Git - micro.git/commitdiff
Fix makefile tags dependencies
authorZachary Yedidia <zyedidia@gmail.com>
Fri, 14 Feb 2020 01:00:35 +0000 (20:00 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Fri, 14 Feb 2020 01:00:35 +0000 (20:00 -0500)
Makefile

index 078c5d4a4950687ba0c18d7edc319cb8f0bb86ba..4d536210d3c145f11929355ce74ac9945a0317f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,7 @@ build:
 build-dbg:
        go build -ldflags "-s -w $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro
 
-build-tags:
-       git fetch --tags
+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
@@ -39,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