bird/doc/Makefile
Martin Mares cf0fca3035 Added `progspell' target which runs ispell on the progdoc SGML file with
all function, variable and structure names removed.
2000-06-07 12:27:18 +00:00

44 lines
678 B
Makefile

root-rel=../
dir-name=doc
ifneq ($(wildcard ../Rules),)
include ../Rules
else
srcdir=$(shell cd $(root-rel) ; pwd)
srcdir_abs=$(srcdir)
endif
# Force rebuilds
.PHONY: prog.sgml bird.sgml
docs: progdocs userdocs
progdocs: prog.html prog.dvi
prog.sgml:
$(srcdir)/tools/progdoc $(srcdir_abs)
%.html: %.sgml
./sgml2html $<
%.info: %.sgml
sgml2info $<
%.dvi: %.sgml
./sgml2latex $<
%.tex: %.sgml
./sgml2latex --output=tex $<
%.txt: %.sgml
./sgml2txt $<
progspell: prog.sgml
sed -f prog-spell.sed <prog.sgml >prog.spell
ispell prog.spell
userdocs: bird.html bird.dvi bird.txt
clean:
rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc *.spell
rm -f prog.sgml