Build a plain text files from man pages

This commit is contained in:
Stas Degteff 2005-09-10 14:29:09 +00:00
parent 83f9b1abd3
commit 9ccbb09696

View File

@ -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)