mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Merge pull request #58 from OpenCHAMI/manpage
Add man page to include in packaging
This commit is contained in:
commit
20f7c9f043
2 changed files with 13 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
9
Makefile
9
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue