2000-05-06 01:15:56 +08:00
|
|
|
root-rel=../
|
|
|
|
dir-name=doc
|
2000-04-18 00:51:28 +08:00
|
|
|
|
2000-05-31 19:35:47 +08:00
|
|
|
ifneq ($(wildcard ../Rules),)
|
2000-05-11 19:54:03 +08:00
|
|
|
include ../Rules
|
2000-05-31 19:35:47 +08:00
|
|
|
else
|
|
|
|
srcdir=$(shell cd $(root-rel) ; pwd)
|
|
|
|
srcdir_abs=$(srcdir)
|
|
|
|
endif
|
2000-05-11 19:54:03 +08:00
|
|
|
|
2000-05-31 19:35:47 +08:00
|
|
|
# Force rebuilds
|
|
|
|
.PHONY: prog.sgml bird.sgml
|
|
|
|
|
|
|
|
docs: progdocs userdocs
|
|
|
|
|
2000-06-06 00:36:16 +08:00
|
|
|
progdocs: prog.html prog.dvi
|
2000-05-31 19:35:47 +08:00
|
|
|
|
|
|
|
prog.sgml:
|
2000-05-06 01:15:56 +08:00
|
|
|
$(srcdir)/tools/progdoc $(srcdir_abs)
|
2000-04-18 00:51:28 +08:00
|
|
|
|
|
|
|
%.html: %.sgml
|
|
|
|
./sgml2html $<
|
|
|
|
|
|
|
|
%.info: %.sgml
|
|
|
|
sgml2info $<
|
|
|
|
|
|
|
|
%.dvi: %.sgml
|
|
|
|
./sgml2latex $<
|
|
|
|
|
|
|
|
%.tex: %.sgml
|
|
|
|
./sgml2latex --output=tex $<
|
2000-04-28 17:48:01 +08:00
|
|
|
|
2000-05-31 19:35:47 +08:00
|
|
|
%.txt: %.sgml
|
|
|
|
./sgml2txt $<
|
|
|
|
|
2000-06-07 20:27:18 +08:00
|
|
|
progspell: prog.sgml
|
|
|
|
sed -f prog-spell.sed <prog.sgml >prog.spell
|
|
|
|
ispell prog.spell
|
|
|
|
|
2000-05-31 19:35:47 +08:00
|
|
|
userdocs: bird.html bird.dvi bird.txt
|
2000-05-11 19:54:03 +08:00
|
|
|
|
2000-05-06 01:15:56 +08:00
|
|
|
clean:
|
2000-06-07 20:27:18 +08:00
|
|
|
rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc *.spell
|
2000-05-31 19:35:47 +08:00
|
|
|
rm -f prog.sgml
|