summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 0a72feed5f840256a3866ad21e911649d9e65f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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.dvi

prog.sgml:
	$(srcdir)/tools/progdoc $(srcdir_abs)

%.html: %.sgml
	./sgml2html $<

%.info: %.sgml
	sgml2info $<

%.dvi: %.sgml
	./sgml2latex $<

%.tex: %.sgml
	./sgml2latex --output=tex $<

%.txt: %.sgml
	./sgml2txt $<

userdocs: bird.html bird.dvi bird.txt

clean:
	rm -f *.html *.tex *.dvi *.log *.ps *.txt *.aux *.toc
	rm -f prog.sgml