From 15d67ef23065b5705a64e08005c2e2f9becf0927 Mon Sep 17 00:00:00 2001 From: sloum Date: Wed, 27 May 2020 22:29:41 -0700 Subject: [PATCH] Adds a make target for release and updates clean to clean it up --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 5759793..b9ef090 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,7 @@ install-bin: build clean: ${GOCMD} clean rm -f ./bombadillo.1.gz 2> /dev/null + rm -f ./${BINARY}_* 2> /dev/null .PHONY: uninstall uninstall: clean @@ -66,6 +67,13 @@ uninstall: clean rm -f ${DESTDIR}${DATAROOTDIR}/pixmaps/bombadillo-icon.png -update-desktop-database 2> /dev/null +.PHONY: release +release: + GOOS=linux GOARCH=amd64 ${GOCMD} build ${LDFLAGS} -o ${BINARY}_linux_64 + GOOS=linux GOARCH=arm ${GOCMD} build ${LDFLAGS} -o ${BINARY}_linux_arm + GOOS=linux GOARCH=386 ${GOCMD} build ${LDFLAGS} -o ${BINARY}_linux_32 + GOOS=darwin GOARCH=amd64 ${GOCMD} build ${LDFLAGS} -o ${BINARY}_darwin_64 + .PHONY: test test: clean build