diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-28 10:09:18 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-28 10:09:18 +0200 |
commit | f74f95171f0299707d91d27d89a82b6d51d06346 (patch) | |
tree | af45d3106f63dc7830ff3799a2cd9c23ec658d60 /Makefile | |
parent | a771d8d81175eb5ca1c47334cc24fe6eae3965ba (diff) |
Add a dist target for cross-compilation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -22,5 +22,16 @@ install: cp ${target}.1 ${DPREFIX}/share/man/man1 cp ${target}.5 ${DPREFIX}/share/man/man5 +dist: + mkdir -p dist + for os in darwin linux windows; do \ + for arch in amd64 arm64; do \ + GOARCH=$$arch GOOS=$$os go build -o dist/gsp-$$os-$$arch; \ + done; \ + done + test: go test ./... + +clean: + rm -rf dist |