diff --git a/.gitignore b/.gitignore index 029a7dc..8bca0f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -/gdoc2pdf +/gdoc2pdf* +/checksums.txt* /*.pdf diff --git a/Makefile b/Makefile index d7cdb63..a1e24da 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,14 @@ buildflags := -ldflags "-w -s -X main.Version=$(shell git describe --abbrev=4 --dirty --always --tags)" -tags netgo,osusergo gdoc2pdf: *.go go build -o $@ $(buildflags) +gdoc2pdf.exe: *.go + env GOOS=windows GOARCH=amd64 go build $(buildflags) -o $@ +gdoc2pdf-osx: *.go + env GOOS=darwin GOARCH=amd64 go build $(buildflags) -o $@ +checksums.txt: + sha256sum gdoc2pdf* > checksums.txt + gpg --armor --detach-sign checksums.txt +release: clean gdoc2pdf gdoc2pdf.exe gdoc2pdf-osx checksums.txt clean: - rm -f gdoc2pdf + rm -f gdoc2pdf gdoc2pdf.exe gdoc2pdf-osx checksums.txt checksums.txt.asc .PHONY += clean