b78eb5f1e58d25fe1d93ba1372176041339281dc
[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
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.html design.html
29
30 ps: manifest.ps design.ps
31
32 txt: manifest.txt design.txt
33
34 all:  ps html txt
35
36 manifest.html : manifest.xml $(IMAGES)
37         xml2html manifest.xml > manifest.html
38
39 manifest.ps : manifest.xml  $(PICTURES)
40         xml2latex manifest.xml >manifest.tex
41         latex manifest.tex
42         dvips -o manifest.ps manifest.dvi
43
44 manifest.pdf : manifest.xml  $(PICTURES)
45         xml2latex manifest.xml >manifest.tex
46         pdflatex manifest.tex
47
48 manifest.txt : manifest.xml
49         xml2text manifest.xml > manifest.txt
50
51 design.html : design.xml $(IMAGES)
52         xml2html design.xml > design.html
53
54 design.ps : design.xml  $(PICTURES)
55         xml2latex design.xml >design.tex
56         latex design.tex
57         dvips -o design.ps design.dvi
58
59 design.pdf : design.xml  $(PICTURES)
60         xml2latex design.xml >design.tex
61         pdflatex design.tex
62
63 design.txt : design.xml
64         xml2text design.xml > design.txt
65
66 check:
67         xmllint --noout --valid $(XMLS)
68 clean:
69         rm -f *.html *.ps *.tex *.dvi *.toc *.aux
70         rm -f *.log *.txt *.pdf
71         rm -f $(IMAGES) $(PICTURES)