diff --git a/Makefile b/Makefile index a33de67..8f1854b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := v1.0.0-pre +VERSION := v1.0.0 NAME := glutton BUILDSTRING := $(shell git log --pretty=format:'%h' -n 1) VERSIONSTRING := $(NAME) version $(VERSION)+$(BUILDSTRING) @@ -8,6 +8,15 @@ LDFLAGS := "-X \"main.VERSION=$(VERSIONSTRING)\" -X \"main.BUILDDATE=$(BUILDDATE .PHONY: all test clean build +.PHONY: tag +tag: + git tag $(VERSION) + git push origin --tags + +.PHONY: upx +upx: + cd bin; find . -type f -exec upx "{}" \; + default: build build: