add make manpages hook and fix makefile

This commit is contained in:
Mark Furland 2020-05-19 22:40:14 -04:00
parent db2fac93ea
commit 6387078532
2 changed files with 6 additions and 2 deletions

View file

@ -17,10 +17,14 @@ builds:
id: macos
goos: [darwin]
goarch: [amd64]
hooks:
pre: make manpages
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [386, amd64, arm64]
- <<: *build_defaults
id: windows
goos: [windows]

View file

@ -46,9 +46,9 @@ endif
.PHONY: site-publish
share/man/man1/:
share/man/man1:
mkdir -p $@
.PHONY: manpages
manpages: manpage
manpages: share/man/man1
go run ./cmd/gen-docs --man-page --doc-path ./share/man/man1/