]> git.ipfire.org Git - thirdparty/bird.git/blob - doc/Makefile
Added `progspell' target which runs ispell on the progdoc SGML file with
[thirdparty/bird.git] / doc / Makefile
1 root-rel=../
2 dir-name=doc
3
4 ifneq ($(wildcard ../Rules),)
5 include ../Rules
6 else
7 srcdir=$(shell cd $(root-rel) ; pwd)
8 srcdir_abs=$(srcdir)
9 endif
10
11 # Force rebuilds
12 .PHONY: prog.sgml bird.sgml
13
14 docs: progdocs userdocs
15
16 progdocs: prog.html prog.dvi
17
18 prog.sgml:
19 $(srcdir)/tools/progdoc $(srcdir_abs)
20
21 %.html: %.sgml
22 ./sgml2html $<
23
24 %.info: %.sgml
25 sgml2info $<
26
27 %.dvi: %.sgml
28 ./sgml2latex $<
29
30 %.tex: %.sgml
31 ./sgml2latex --output=tex $<
32
33 %.txt: %.sgml
34 ./sgml2txt $<
35
36 progspell: prog.sgml
37 sed -f prog-spell.sed <prog.sgml >prog.spell
38 ispell prog.spell
39
40 userdocs: bird.html bird.dvi bird.txt
41
42 clean:
43 rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc *.spell
44 rm -f prog.sgml