2005-09-10 14:29:09 +00:00
|
|
|
|
# $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
|
|
|
|
|
|
2005-04-28 06:31:13 +00:00
|
|
|
|
|
2005-09-29 16:48:18 +00:00
|
|
|
|
all: html-doc txt-doc tokentpl.txt tokencfg.txt
|
2005-04-28 06:31:13 +00:00
|
|
|
|
|
2005-09-10 14:29:09 +00:00
|
|
|
|
html: html-doc
|
|
|
|
|
html-doc: $(HTMLS)
|
|
|
|
|
|
|
|
|
|
txt: txt-doc
|
|
|
|
|
txt-doc: $(TXTS)
|
|
|
|
|
|
2005-04-28 06:31:13 +00:00
|
|
|
|
|
|
|
|
|
%.html: %.1
|
|
|
|
|
groff -Thtml -mman $< >$@
|
2005-09-10 14:29:09 +00:00
|
|
|
|
|
|
|
|
|
%.txt: %.1
|
|
|
|
|
groff -Tascii -mman $< | sed s/\\[[0-9][0-9]*m//g >$@
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
-rm $(HTMLS) $(TXTS)
|
2005-09-29 16:48:18 +00:00
|
|
|
|
|
|
|
|
|
tokentpl.txt: ../golded3/gemsgs.cpp
|
2005-10-02 11:47:48 +00:00
|
|
|
|
echo '* Golded+ macroses list.' > $@
|
2005-11-07 16:25:33 +00:00
|
|
|
|
echo '==========================================================================' >> $@
|
2005-10-02 11:58:59 +00:00
|
|
|
|
echo '* These macroses may be used in:' >> $@
|
|
|
|
|
echo '* template file, externutil command line, tearline and tagline.' >> $@
|
2005-09-29 16:48:18 +00:00
|
|
|
|
echo '==========================================================================' >> $@
|
2005-11-01 16:53:29 +00:00
|
|
|
|
grep tokenxchg $< | sed -ne 's/^.*"\(@\w*\)".*$$/\1/p' | sort -u >> $@
|
2005-11-07 16:25:33 +00:00
|
|
|
|
@echo '==========================================================================' >> $@
|
|
|
|
|
echo '* These macroses is line prefixes for the template file.' >> $@
|
|
|
|
|
@echo '==========================================================================' >> $@
|
2007-01-03 09:17:05 +00:00
|
|
|
|
cat ../golded3/getpls.cpp | sed -ne cat ../golded3/getpls.cpp \
|
|
|
|
|
| sed -ne '/ \{0,1\}{ CSTR_COMMA_SIZEOF_CSTR("/s/.\{1,\}"\(\w\{1,\}\)".\{1,\}/@\1/p' \
|
|
|
|
|
| sort -u >> $@
|
2005-11-07 16:25:33 +00:00
|
|
|
|
@echo '==========================================================================' >> $@
|
|
|
|
|
|
|
|
|
|
# { CSTR_COMMA_SIZEOF_CSTR("write") },
|
|
|
|
|
# { CSTR_COMMA_SIZEOF_CSTR("header") }
|
2005-09-29 16:48:18 +00:00
|
|
|
|
|
|
|
|
|
tokencfg.txt: ../golded3/gccfgg.h
|
|
|
|
|
@echo '* Golded+ config file tokens list.' > $@
|
|
|
|
|
@echo '==========================================================================' >> $@
|
|
|
|
|
grep CRC_ $< | sed -e '/CRC_LAST_CRC/d' -e 's/^.* CRC_\(\w*\).*$$/\1/' | sort -u >> $@
|