From 13dca035c58927cb067c70ad5528bb098df36a34 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 16 May 2021 09:51:47 +0300 Subject: [PATCH] Add Makefile targets for manpage --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 49e2d58..e254de8 100644 --- a/Makefile +++ b/Makefile @@ -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