13 lines
243 B
Makefile
13 lines
243 B
Makefile
GCFLAGS := -gcflags="all=-l -B"
|
|
LDFLAGS := -ldflags="-X 'main.Commit=$(COMMIT)' -s -w"
|
|
ALLFLAGS := $(GCFLAGS) $(LDFLAGS)
|
|
|
|
default:
|
|
@go build -v $(ALLFLAGS) .
|
|
|
|
upx:
|
|
@upx --lzma ./distribusi
|
|
|
|
release:
|
|
@goreleaser release --snapshot --clean
|