From f037293ba55bc97aeb52f6629f3c17db0eec349d Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 9 Jun 2018 18:33:35 +1200 Subject: [PATCH] makefile: initial commit --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3b2e285 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + # Makefile for nmdc-telegramfrontend + +VERSION := 1.0.0 + +.PHONY: all dist clean + +all: nmdc-telegramfrontend + +clean: + rm -f ./nmdc-telegramfrontend + +nmdc-telegramfrontend: *.go Gopkg.* + GOOS=linux GOARCH=amd64 go build + +dist: dist/nmdc-telegramfrontend-$(VERSION)-linux64.tar.xz dist/nmdc-telegramfrontend-$(VERSION)-src.tar.bz2 + +dist/nmdc-telegramfrontend-$(VERSION)-linux64.tar.xz: nmdc-telegramfrontend + XZ_OPTS=-9 tar caf dist/nmdc-telegramfrontend-$(VERSION)-linux64.tar.xz nmdc-telegramfrontend --owner=0 --group=0 + +dist/nmdc-telegramfrontend-$(VERSION)-src.tar.bz2: nmdc-telegramfrontend + hg archive dist/nmdc-telegramfrontend-$(VERSION)-src.tar.bz2