aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile11
2 files changed, 12 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d11f0ca..f3bee77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
+dist
gsp
test-data
diff --git a/Makefile b/Makefile
index 8e71ffb..ba7f802 100644
--- a/Makefile
+++ b/Makefile
@@ -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