add makefile
This commit is contained in:
parent
5aaaa11b19
commit
241b0006fc
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
.PHONY: all bin
|
||||||
|
|
||||||
|
|
||||||
|
all:
|
||||||
|
OS=linux ARCH=amd64 make bin
|
||||||
|
OS=darwin ARCH=amd64 make bin
|
||||||
|
OS=plan9 ARCH=amd64 make bin
|
||||||
|
7z a hdiet.zip *.bin
|
||||||
|
|
||||||
|
bin: hdiet.go go.mod
|
||||||
|
GOOS="$(OS)" GOARCH="$(ARCH)" CGO_ENABLED=0 go build -o "hdiet-$(OS)-$(ARCH).bin" -ldflags '-s -w' hdiet.go
|
||||||
|
|
Loading…
Reference in New Issue
Block a user