Merge pull request #58 from OpenCHAMI/manpage

Add man page to include in packaging
This commit is contained in:
David Allen 2024-09-17 09:23:54 -06:00 committed by GitHub
commit 20f7c9f043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,9 @@ version: 2
before:
hooks:
- go mod download
- go install github.com/cpuguy83/go-md2man/v2@latest
- go-md2man -in README.md -out manpage.1
builds:
- env:
- CGO_ENABLED=1
@ -25,6 +28,7 @@ archives:
- CHANGELOG.md
- README.md
- bin/magellan.sh
- magellan.1
dockers:
-
image_templates:

View file

@ -53,6 +53,7 @@ inst: ## go install tools
go install github.com/client9/misspell/cmd/misspell@v0.3.4
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
go install github.com/goreleaser/goreleaser@v1.18.2
go install github.com/cpuguy83/go-md2man/v2@latest
.PHONY: goreleaser
release: ## goreleaser build
@ -103,6 +104,14 @@ emulator:
$(call print-target)
./emulator/setup.sh
magellan.1: README.md inst
$(GOPATH)/bin/go-md2man -in $< -out $@
.PHONY: man
man:
$(call print-target)
$(MAKE) -f $(firstword $(MAKEFILE_LIST)) magellan.1
define print-target
@printf "Executing target: \033[36m$@\033[0m\n"
endef