Skip to content

Commit 5a9dbee

Browse files
committed
Improve Makefile
- Infer version from tag - disable windows
1 parent b08fef2 commit 5a9dbee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ build_tags := $(strip $(build_tags))
3030
BUILD_FLAGS := -tags "$(build_tags) $(GITOPIA_ENV)"
3131

3232
appname := git-remote-gitopia
33-
version := 1.4.0
33+
version := $(shell echo $(shell git describe --tags) | sed 's/^v//')
3434

3535
build = GOOS=$(1) GOARCH=$(2) go build $(BUILD_FLAGS) -o build/$(appname)$(3) ./cmd/git-remote-gitopia && \
3636
GOOS=$(1) GOARCH=$(2) go build $(BUILD_FLAGS) -o build/git-gitopia$(3) ./cmd/git-gitopia && \
@@ -42,7 +42,7 @@ zip = cd build && zip $(appname)_$(version)_$(1)_$(2).zip $(appname)$(3) git-git
4242

4343
.PHONY: build
4444

45-
all: windows darwin linux git_release_tar_gz git_release_zip
45+
all: darwin linux git_release_tar_gz git_release_zip
4646

4747
clean:
4848
rm -rf build/

0 commit comments

Comments
 (0)