mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
589 B
Makefile
37 lines
589 B
Makefile
all:
|
|
@echo "no default"
|
|
|
|
run:
|
|
go run main.go
|
|
|
|
debug:
|
|
DEBUG=1 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 ./...
|
|
|
|
snap/clean:
|
|
snapcraft clean
|
|
|
|
snap/stage:
|
|
snapcraft stage
|
|
|
|
snap/build: snap/clean snap/stage
|
|
snapcraft snap
|
|
|
|
snap/deploy:
|
|
snapcraft push cointop_*.snap --release stable
|
|
|
|
snap/remove:
|
|
snap remove cointop
|