2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-05 00:00:14 +00:00
cointop/Makefile
Miguel Mota 1592808f65 add build badge
Former-commit-id: 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly bb0a6ab017ef8d9cb7ca5353d75708713cbc72bf [formerly 6c112ce433]]]
Former-commit-id: 58044fcf375dc6ead3e26f4dc878e7e98ad111b0
Former-commit-id: 11ff94a0358708bdce33506f3b64ed9b9f6e0207 [formerly ecf02c0798d8081deb8c2d7f353820e0842de20b]
Former-commit-id: 649f4925363be4d5cb7e6630c5dfb9fac9e80a0a
2018-04-03 01:30:15 -07:00

19 lines
349 B
Makefile

all:
@echo "no default"
run:
go run main.go
# http://macappstore.org/upx
build: clean
env GOARCH=amd64 go build -ldflags "-s -w" -o bin/cointop64 && upx bin/cointop64 && \
env GOARCH=386 go build -ldflags "-s -w" -o bin/cointop32 && upx bin/cointop32
clean:
go clean && \
rm -f bin/cointop64 && \
rm -f bin/cointop32
test:
go test ./...