From f4996428ffd1868c991539412e98bd24f80012a4 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 8 Aug 2025 20:02:25 -0230 Subject: release --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3