add make manpages hook and fix makefile
This commit is contained in:
parent
db2fac93ea
commit
6387078532
2 changed files with 6 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue