hdiet/Makefile

13 lines
278 B
Makefile
Raw Permalink Normal View History

2023-09-21 22:51:51 +02:00
.PHONY: all bin
all:
OS=linux ARCH=amd64 make bin
OS=darwin ARCH=amd64 make bin
OS=plan9 ARCH=amd64 make bin
2023-09-21 23:02:11 +02:00
7z a hdiet.zip *.bin Readme.md
2023-09-21 22:51:51 +02:00
bin: hdiet.go go.mod
GOOS="$(OS)" GOARCH="$(ARCH)" CGO_ENABLED=0 go build -o "hdiet-$(OS)-$(ARCH).bin" -ldflags '-s -w' hdiet.go