Skip to content

Commit

Permalink
Add Makefile targets for manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed May 16, 2021
1 parent 1c7dc7a commit 13dca03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ VERSION := v$(shell cat VERSION)-git
build:
go build -ldflags "-X 'main.Version=$(VERSION)'" ./cmd/pistol

# Manpage
pistol.1: README.adoc
asciidoctor -b manpage -d manpage README.adoc

manpage: pistol.1

install:
go install -ldflags "-X 'main.Version=$(VERSION)'" ./cmd/pistol

Expand Down

0 comments on commit 13dca03

Please sign in to comment.