4dfb9000418be639c29266c0871090f48eb5cf59
[gnucomo.git] / doc / makefile
1
2 .SUFFIXES: .obj .eps .png
3
4 .obj.png:
5         tgif -print -png $<
6
7 .obj.eps:
8         tgif -print -eps -color $<
9
10 XMLS = manifest.xml design.xml manual.xml
11
12 IMAGES= dataflow.png architecture.png erd-action.png erd-anu.png erd-log.png \
13         erd-lognotif.png erd-notif.png erd-object.png erd-objissue.png \
14         erd-objprior.png erd-objservice.png erd-objsysusr.png erd-objusr.png \
15         erd-prior.png erd-service.png erd-status.png erd-toi.png \
16         erd-unplog.png erd-usr.png erd.png \
17         class-database_entity.png classes-gcm_input.png gcm_input-dataflow.png \
18         classes-message_filter.png
19
20 PICTURES= dataflow.eps architecture.eps erd-action.eps erd-anu.eps erd-log.eps \
21           erd-lognotif.eps erd-notif.eps erd-object.eps erd-objissue.eps \
22           erd-objprior.eps erd-objservice.eps erd-objsysusr.eps erd-objusr.eps \
23           erd-prior.eps erd-service.eps erd-status.eps erd-toi.eps \
24           erd-unplog.eps erd-usr.eps erd.eps \
25           class-database_entity.eps classes-gcm_input.eps gcm_input-dataflow.eps \
26         classes-message_filter.eps
27
28 html: manifest.xhtml design.xhtml manual.xhtml
29
30 ps: manifest.ps design.ps
31
32 txt: manifest.txt design.txt
33
34 all:  ps html txt
35
36 manual.xhtml : manual.xml $(IMAGES)
37         xml2html manual.xml > manual.xhtml
38
39 manifest.xhtml : manifest.xml $(IMAGES)
40         xml2html manifest.xml > manifest.xhtml
41
42 manifest.ps : manifest.xml  $(PICTURES)
43         xml2latex manifest.xml >manifest.tex
44         latex manifest.tex
45         dvips -o manifest.ps manifest.dvi
46
47 manifest.pdf : manifest.xml  $(PICTURES)
48         xml2latex manifest.xml >manifest.tex
49         pdflatex manifest.tex
50
51 manifest.txt : manifest.xml
52         xml2text manifest.xml > manifest.txt
53
54 design.xhtml : design.xml $(IMAGES)
55         xml2html design.xml > design.xhtml
56
57 design.ps : design.xml  $(PICTURES)
58         xml2latex design.xml >design.tex
59         latex design.tex
60         dvips -o design.ps design.dvi
61
62 design.pdf : design.xml  $(PICTURES)
63         xml2latex design.xml >design.tex
64         pdflatex design.tex
65
66 design.txt : design.xml
67         xml2text design.xml > design.txt
68
69 check:
70         xmllint --noout --valid $(XMLS)
71 clean:
72         rm -f *.html *.xhtml *.ps *.tex *.dvi *.toc *.aux
73         rm -f *.log *.txt *.pdf
74         rm -f $(IMAGES) $(PICTURES)