i3-blocks-go/Makefile
Simon Vieille ab357d786b
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
disable CGO
2024-08-03 14:50:58 +02:00

16 lines
433 B
Makefile

all: linux-amd64 linux-arm64
.ONESHELL:
linux-amd64:
for i in blocks/*; do
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags '-s -w' -v -o "build/linux-amd64/$$(basename "$$i")" "$$i/main.go"
done
.ONESHELL:
linux-arm64:
for i in blocks/*; do
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -ldflags '-s -w' -v -o "build/linux-arm64/$$(basename "$$i")" "$$i/main.go"
done
clean:
rm -fr build/* 2>/dev/null || true