makefile: initial commit
This commit is contained in:
parent
3dcf42f790
commit
f037293ba5
21
Makefile
Normal file
21
Makefile
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user