From f6fd580a0e597de23f0eab351e8d2fdfcfb520e2 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Mon, 28 Mar 2016 00:41:14 +0200 Subject: use my pflag and goxc --- Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ab16c80..fbfae46 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,26 @@ SHELL = /bin/bash +VERSION=0.2.1 all: - @echo goboom makefile + @echo goboom makefile $(VERSION) @echo \"make build\" to build .PHONY: build build: - go build goboom.go + goxc -pv="$(VERSION)" -build-ldflags='-X main.version=$(VERSION)' xc .PHONY: package -package: build - tar cf goboom_linux_amd64.tar.xz goboom goboom_run README.rst docs/_build/man/goboom.1 - sha512sum goboom_linux_amd64.tar.xz > goboom_linux_amd64.tar.xz.sha512sum +package: man + goxc -pv="$(VERSION)" -build-ldflags='-X main.version=$(VERSION)' .PHONY: html html: - pushd docs && make html && popd + pushd docs && make html SPHINXOPTS="-Dversion=$(VERSION) -Drelease=$(VERSION)" && popd .PHONY: man man: - pushd docs && make man && popd + pushd docs && make man SPHINXOPTS="-Dversion=$(VERSION) -Drelease=$(VERSION)" && popd + +.PHONY: upload +upload: + goxc -pv="$(VERSION)" bintray -- cgit v1.2.3