From 27591b19abda0cf0eff06d0d6a8a8c6c77fc10f2 Mon Sep 17 00:00:00 2001 From: dvkt Date: Wed, 8 Jan 2020 13:15:36 -0800 Subject: [PATCH] make manual --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e48ef94..7298780 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ RSFILES = $(wildcard src/*.rs src/**/*.rs) .PHONY: release debug clean # Default target -release: $(PHETCH_RELEASE) +release: manual $(PHETCH_RELEASE) # Binary with debugging info debug: $(PHETCH_DEBUG) @@ -25,3 +25,14 @@ $(PHETCH_RELEASE): $(RSFILES) # Build the debug version $(PHETCH_DEBUG): $(RSFILES) cargo build + +# Build manual +manual: doc/phetch.1 + +doc/phetch.1: doc/phetch.1.md scdoc + scdoc < doc/phetch.1.md > doc/phetch.1 + +# Must have scdoc installed to build manual. +scdoc: + @which scdoc || (echo "scdoc(1) not found."; \ + echo "install it: https://repology.org/project/scdoc"; exit 1)