aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-08-08 20:02:25 -0230
committerSam Anthony <sam@samanthony.xyz>2025-08-08 20:02:25 -0230
commitf4996428ffd1868c991539412e98bd24f80012a4 (patch)
tree7105ba07608a0b6db925d3723ec9fb85eadb9948
parent42557bcfc47cd00012a6a559c2b002fffa245b7d (diff)
downloadpfc-1.3.1.zip
releasev1.3.1
-rw-r--r--.gitignore1
-rw-r--r--Makefile14
-rw-r--r--config.mk5
3 files changed, 17 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 9983ee0..271f523 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/pfc
/pfc.1
+/pfc-v*
diff --git a/Makefile b/Makefile
index b0da10e..276fd6b 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ run: build
./pfc
clean:
- rm -f pfc
+ rm -f pfc pfc-v*
doc:
sed "s/VERSION/${VERSION}/g" < doc/intro.1 | \
@@ -28,4 +28,14 @@ uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/pfc \
${DESTDIR}${MANPREFIX}/man1/pfc.1
-.PHONY: build run clean doc install uninstall
+release:
+ for os in ${GOOSES} ; do \
+ for arch in ${GOARCHES} ; do \
+ bin=pfc-v${VERSION}-$$os-$$arch; \
+ if [ $$os = "windows" ] ; then bin=$$bin.exe; fi; \
+ echo building $$bin; \
+ GOOS=$$os GOARCH=$$arch go build -o $$bin; \
+ done \
+ done
+
+.PHONY: build run clean doc install uninstall release
diff --git a/config.mk b/config.mk
index b009d55..4d76aba 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,7 @@
-VERSION = 1.3.0
+VERSION = 1.3.1
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
+
+GOOSES = darwin linux windows
+GOARCHES = amd64 arm64