summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-28 14:43:21 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-04-19 11:01:33 +0200
commitb0049629c86093ce898b4e80f362fb1387262b8b (patch)
tree5fff0728c4535912a8d3070e2ba14b3c4fbb6990 /Makefile
parent7aa46e79f2f4994ec94aa94d4a1129e10b6cbd4d (diff)
downloadmupdf-b0049629c86093ce898b4e80f362fb1387262b8b.tar.xz
Tweak manpages and add makefile rule to generate plain text versions.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
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