mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
51 lines
743 B
Makefile
51 lines
743 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.ps
|
|
userdocs: bird.html bird.pdf
|
|
|
|
prog.sgml:
|
|
$(srcdir)/tools/progdoc $(srcdir_abs)
|
|
|
|
%.html: %.sgml
|
|
./sgml2html $<
|
|
|
|
%.dvi: %.tex
|
|
latex $<
|
|
latex $<
|
|
|
|
%.ps: %.dvi
|
|
dvips -D600 -ta4 -o $@ $<
|
|
|
|
%.pdf: %.tex
|
|
pdflatex $<
|
|
pdflatex $<
|
|
|
|
%.tex: %.sgml
|
|
./sgml2latex --output=tex $<
|
|
|
|
%.txt: %.sgml
|
|
./sgml2txt $<
|
|
|
|
progspell: prog.sgml
|
|
sed -f prog-spell.sed <prog.sgml >prog.spell
|
|
ispell prog.spell
|
|
|
|
clean:
|
|
rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
|
|
rm -f prog.sgml
|
|
|
|
distclean: clean
|
|
rm -f *.html *.ps
|