2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00
cointop/Makefile

86 lines
1.6 KiB
Makefile
Raw Normal View History

2018-05-08 01:48:27 +00:00
aul:
@echo "no default"
run:
2018-05-08 01:48:27 +00:00
go run main.go
debug:
DEBUG=1 go run main.go
# http://macappstore.org/upx
2018-05-11 08:44:32 +00:00
build/mac: clean/mac
2018-04-27 18:32:26 +00:00
env GOARCH=amd64 go build -ldflags "-s -w" -o bin/macos/cointop && upx bin/macos/cointop
2018-05-11 08:44:32 +00:00
build/linux: clean/linux
2018-05-11 08:47:05 +00:00
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/linux/cointop && upx bin/linux/cointop
2018-05-11 08:20:08 +00:00
2018-04-27 18:32:26 +00:00
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
2018-05-11 08:44:32 +00:00
clean/mac:
go clean && \
rm -rf bin/mac
clean/linux:
go clean && \
rm -rf bin/linux
clean:
go clean && \
2018-04-27 18:32:26 +00:00
rm -rf bin/
test:
go test ./...
2018-04-28 00:07:13 +00:00
cointop/test:
go run main.go -test
snap/clean:
snapcraft clean
2018-05-08 08:00:17 +00:00
rm -f cointop_*.snap
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
2018-04-26 23:19:19 +00:00
2018-05-11 09:04:08 +00:00
flatpak/build:
flatpak-builder --force-clean build-dir com.github.miguelmota.Cointop.json
flatpak/run:
flatpak-builder --run build-dir com.github.miguelmota.Cointop.json cointop
flatpak/repo:
flatpak-builder --repo=repo --force-clean build-dir com.github.miguelmota.Cointop.json
2018-04-27 18:32:26 +00:00
brew/clean: brew/remove
brew cleanup --force cointop
brew prune
2018-04-26 23:19:19 +00:00
brew/remove:
2018-04-27 18:32:26 +00:00
brew uninstall --force cointop
2018-04-26 23:19:19 +00:00
brew/build: brew/remove
brew install --build-from-source cointop.rb
2018-04-27 18:32:26 +00:00
brew/audit:
brew audit --strict cointop.rb
2018-04-27 19:09:34 +00:00
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