2000-05-05 19:15:56 +02:00
|
|
|
root-rel=../
|
|
|
|
dir-name=doc
|
2000-04-17 18:51:28 +02:00
|
|
|
|
2000-05-31 13:35:47 +02:00
|
|
|
ifneq ($(wildcard ../Rules),)
|
2000-05-11 13:54:03 +02:00
|
|
|
include ../Rules
|
2000-05-31 13:35:47 +02:00
|
|
|
else
|
|
|
|
srcdir=$(shell cd $(root-rel) ; pwd)
|
|
|
|
srcdir_abs=$(srcdir)
|
|
|
|
endif
|
2000-05-11 13:54:03 +02:00
|
|
|
|
2000-05-31 13:35:47 +02:00
|
|
|
# Force rebuilds
|
|
|
|
.PHONY: prog.sgml bird.sgml
|
|
|
|
|
|
|
|
docs: progdocs userdocs
|
2000-06-09 08:31:43 +02:00
|
|
|
progdocs: prog.html prog.ps
|
2016-09-29 14:05:25 +02:00
|
|
|
userdocs: bird.html bird.pdf
|
2000-05-31 13:35:47 +02:00
|
|
|
|
|
|
|
prog.sgml:
|
2000-05-05 19:15:56 +02:00
|
|
|
$(srcdir)/tools/progdoc $(srcdir_abs)
|
2000-04-17 18:51:28 +02:00
|
|
|
|
|
|
|
%.html: %.sgml
|
|
|
|
./sgml2html $<
|
|
|
|
|
2000-06-09 08:31:43 +02:00
|
|
|
%.dvi: %.tex
|
|
|
|
latex $<
|
|
|
|
latex $<
|
2000-04-17 18:51:28 +02:00
|
|
|
|
2000-06-09 08:31:43 +02:00
|
|
|
%.ps: %.dvi
|
|
|
|
dvips -D600 -ta4 -o $@ $<
|
2000-04-17 18:51:28 +02:00
|
|
|
|
2016-09-29 14:05:25 +02:00
|
|
|
%.pdf: %.tex
|
|
|
|
pdflatex $<
|
|
|
|
pdflatex $<
|
|
|
|
|
2000-04-17 18:51:28 +02:00
|
|
|
%.tex: %.sgml
|
|
|
|
./sgml2latex --output=tex $<
|
2000-04-28 11:48:01 +02:00
|
|
|
|
2000-05-31 13:35:47 +02:00
|
|
|
%.txt: %.sgml
|
|
|
|
./sgml2txt $<
|
|
|
|
|
2000-06-07 14:27:18 +02:00
|
|
|
progspell: prog.sgml
|
|
|
|
sed -f prog-spell.sed <prog.sgml >prog.spell
|
|
|
|
ispell prog.spell
|
|
|
|
|
2000-05-05 19:15:56 +02:00
|
|
|
clean:
|
2000-06-09 08:31:43 +02:00
|
|
|
rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
|
2000-05-31 13:35:47 +02:00
|
|
|
rm -f prog.sgml
|
2000-06-09 08:31:43 +02:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f *.html *.ps
|