From 9ccbb09696857522ab2ec6bce5017b1670fb6c6e Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 10 Sep 2005 14:29:09 +0000 Subject: [PATCH] Build a plain text files from man pages --- docs/Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 7a1a5c2..d5cbdc3 100755 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,8 +1,25 @@ -# -*- makefile to build documentation-*- +# $Id$ +# -*- makefile to build some Golded+ documentation -*- +# (c) Stas Degteff 2:5080/102@FIDONET, stas_degteff@users.sourceforge.net + +HTMLS= golded.html goldnode.html rddt.html +TXTS= golded.txt goldnode.txt rddt.txt + all: html-doc -html-doc: golded.html goldnode.html rddt.html +html: html-doc +html-doc: $(HTMLS) + +txt: txt-doc +txt-doc: $(TXTS) + %.html: %.1 groff -Thtml -mman $< >$@ + +%.txt: %.1 + groff -Tascii -mman $< | sed s/\\[[0-9][0-9]*m//g >$@ + +clean: + -rm $(HTMLS) $(TXTS)