mirror of
https://github.com/miguelmota/cointop
synced 2024-11-05 00:00:14 +00:00
64 lines
1.1 KiB
Makefile
64 lines
1.1 KiB
Makefile
all:
|
|
@echo "no default"
|
|
|
|
run:
|
|
go run main.go
|
|
|
|
debug:
|
|
DEBUG=1 go run main.go
|
|
|
|
# http://macappstore.org/upx
|
|
build/mac: clean
|
|
env GOARCH=amd64 go build -ldflags "-s -w" -o bin/macos/cointop && upx bin/macos/cointop
|
|
|
|
build/multiple: 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 -rf bin/
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
cointop/test:
|
|
go run main.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
|
|
|
|
brew/clean: brew/remove
|
|
brew cleanup --force cointop
|
|
brew prune
|
|
|
|
brew/remove:
|
|
brew uninstall --force cointop
|
|
|
|
brew/build: brew/remove
|
|
brew install --build-from-source cointop.rb
|
|
|
|
brew/audit:
|
|
brew audit --strict cointop.rb
|
|
|
|
git/rm/large:
|
|
java -jar bfg.jar --strip-blobs-bigger-than 200K .
|
|
|
|
git/repack:
|
|
git reflog expire --expire=now --all
|
|
git fsck --full --unreachable
|
|
git repack -A -d
|
|
git gc --aggressive --prune=now
|