-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
13 lines (13 loc) · 705 Bytes
/
Copy pathMakefile
File metadata and controls
13 lines (13 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
all: darwin linux64 linux32
darwin:
go get && GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o bin/grad_darwin
linux64:
go get && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o bin/grad_linux_amd64
linux32:
go get && GOOS=linux GOARCH=386 CGO_ENABLED=0 go build -ldflags "-s -w -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash=`git rev-parse HEAD`" -o bin/grad_linux86
clean:
rm -fr bin/
buildclean: clean buildit
cleanbuild: clean buildit
test:
go get && go test ./...