summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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