]> git.ipfire.org Git - thirdparty/bird.git/blob - doc/Makefile
Include <stdint.h> in cf-lex.l to avoid UINTx_MAX redefinition
[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 progdocs: prog.html prog.ps
16 userdocs: bird.html bird.ps
17
18 prog.sgml:
19 $(srcdir)/tools/progdoc $(srcdir_abs)
20
21 %.html: %.sgml
22 ./sgml2html $<
23
24 %.dvi: %.tex
25 latex $<
26 latex $<
27
28 %.ps: %.dvi
29 dvips -D600 -ta4 -o $@ $<
30
31 %.tex: %.sgml
32 ./sgml2latex --output=tex $<
33
34 %.txt: %.sgml
35 ./sgml2txt $<
36
37 progspell: prog.sgml
38 sed -f prog-spell.sed <prog.sgml >prog.spell
39 ispell prog.spell
40
41 clean:
42 rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
43 rm -f prog.sgml
44
45 distclean: clean
46 rm -f *.html *.ps