Skip to content

Commit

Permalink
add make manpages hook and fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfurlan committed May 20, 2020
1 parent db2fac9 commit 6387078
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 6387078

Please sign in to comment.