-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile
24 lines (21 loc) · 866 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SHELL:=/bin/bash
GOBUILD=go build -v github.com/aykamko/tag >/dev/null
build:
go build
generate_release_binaries:
mkdir -p release; \
cd release; \
export GOOS=darwin; export GOARCH=386; \
${GOBUILD} && zip tag_$${GOOS}_$${GOARCH} tag; \
export GOOS=darwin; export GOARCH=amd64; \
${GOBUILD} && zip tag_$${GOOS}_$${GOARCH} tag; \
export GOOS=linux; export GOARCH=386; \
${GOBUILD} && tar -cvzf tag_$${GOOS}_$${GOARCH}.tar.gz tag; \
export GOOS=linux; export GOARCH=amd64; \
${GOBUILD} && tar -cvzf tag_$${GOOS}_$${GOARCH}.tar.gz tag; \
export GOOS=linux; export GOARCH=arm; \
${GOBUILD} && tar -cvzf tag_$${GOOS}_$${GOARCH}.tar.gz tag; \
export GOOS=windows; export GOARCH=386; \
${GOBUILD} && tar -cvzf tag_$${GOOS}_$${GOARCH}.tar.gz tag; \
export GOOS=windows; export GOARCH=amd64; \
${GOBUILD} && tar -cvzf tag_$${GOOS}_$${GOARCH}.tar.gz tag;