Statistics
| Branch: | Revision:

iof-bird-daemon / doc / Makefile @ 4d176e14

History | View | Annotate | Download (702 Bytes)

1 b1777248 Martin Mares
root-rel=../
2
dir-name=doc
3 52276996 Pavel Machek
4 46527a93 Martin Mares
ifneq ($(wildcard ../Rules),)
5 0e7a720a Pavel Machek
include ../Rules
6 46527a93 Martin Mares
else
7
srcdir=$(shell cd $(root-rel) ; pwd)
8
srcdir_abs=$(srcdir)
9
endif
10 0e7a720a Pavel Machek
11 46527a93 Martin Mares
# Force rebuilds
12
.PHONY: prog.sgml bird.sgml
13
14
docs: progdocs userdocs
15 99955b54 Martin Mares
progdocs: prog.html prog.ps
16
userdocs: bird.html bird.ps
17 46527a93 Martin Mares
18
prog.sgml:
19 b1777248 Martin Mares
	$(srcdir)/tools/progdoc $(srcdir_abs)
20 52276996 Pavel Machek
21
%.html: %.sgml
22
	./sgml2html $<
23
24 99955b54 Martin Mares
%.dvi: %.tex
25
	latex $<
26
	latex $<
27 52276996 Pavel Machek
28 99955b54 Martin Mares
%.ps: %.dvi
29
	dvips -D600 -ta4 -o $@ $<
30 52276996 Pavel Machek
31
%.tex: %.sgml
32
	./sgml2latex --output=tex $<
33 602b1445 Pavel Machek
34 46527a93 Martin Mares
%.txt: %.sgml
35
	./sgml2txt $<
36
37 cf0fca30 Martin Mares
progspell: prog.sgml
38
	sed -f prog-spell.sed <prog.sgml >prog.spell
39
	ispell prog.spell
40
41 b1777248 Martin Mares
clean:
42 99955b54 Martin Mares
	rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell
43 46527a93 Martin Mares
	rm -f prog.sgml
44 99955b54 Martin Mares
45
distclean: clean
46
	rm -f *.html *.ps