From b0049629c86093ce898b4e80f362fb1387262b8b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 28 Mar 2012 14:43:21 +0200 Subject: Tweak manpages and add makefile rule to generate plain text versions. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a5fdbc49..80190a8c 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,16 @@ $(MUPDF) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o) $(LINK_CMD) $(X11_LIBS) endif +# --- Format man pages --- + +%.txt: %.1 + nroff -man $< | col -b | expand > $@ + +MAN_FILES := $(wildcard apps/man/*.1) +TXT_FILES := $(MAN_FILES:%.1=%.txt) + +catman: $(TXT_FILES) + # --- Install --- prefix ?= /usr/local -- cgit v1.2.3