-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
16 lines (16 loc) · 831 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
build:
go build -o rkd main.go
release:
rm -rf builds/*
GOOS=linux GOARCH=amd64; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=linux GOARCH=386; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=darwin GOARCH=386; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=darwin GOARCH=amd64; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=windows GOARCH=amd64; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=windows GOARCH=386; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=freebsd GOARCH=386; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
GOOS=freebsd GOARCH=amd64; go build -o builds/rkd-$$GOOS-$$GOARCH-`./rkd version`
cd builds && find . -type f ! -name '*.gz' -exec gzip "{}" \;
ls -la builds/*
install: build
sudo mv rkd /usr/local/bin