]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/openal/docs/Makefile
hello world
[icculus/iodoom3.git] / neo / openal / docs / Makefile
1 ## ------------------------------------------------
2 ## Makefile for openal/docs/
3
4
5 ## DocBook stuff
6 DB2PS  =  db2ps
7 DB2PDF =  db2pdf
8 DB2HTML = db2html
9
10 ## TexInfo stuff
11 MAKEINFO  = makeinfo
12
13
14
15 ## Targets
16 OALSPEC = oalspecs
17 DB_OBJS = $(OALSPEC).ps  $(OALSPEC)/index.html
18
19 TEXI_OBJS = openal.info
20
21 .SUFFIXES: .texi .info
22
23 ## Rules
24 %.ps   : %.sgml
25         $(DB2PS) $<
26
27 %/index.html : %.sgml
28         $(DB2HTML) $<
29
30
31 ## Fixme - config.h
32 %.info : %.texi ../config.h
33         $(MAKEINFO) $<
34
35
36
37 ## ----------------
38 ## Standard targets
39 default: all
40
41 all:    render
42
43 render: $(DB_OBJS)
44
45 texi:   $(TEXI_OBJS)
46
47
48 ## --------------
49 ## Cronjob target
50 update: specs annotated full 
51
52
53 ## ----------------------------------------------------------
54 ## Specification - prototypes, tokens, explanation
55 ##
56 specs-ps:
57         -rm -f  $(OALSPEC)-specs.ps
58         cp ent-marks-specification.sgml ent-marks.sgml
59         $(DB2PS) $(OALSPEC).sgml
60         mv $(OALSPEC).ps $(OALSPEC)-specs.ps
61         zip -9 $(OALSPEC)-specs.ps.zip $(OALSPEC)-specs.ps
62
63 specs-html:
64         -rm -rf $(OALSPEC)-specs/
65         cp ent-marks-specification.sgml ent-marks.sgml
66         $(DB2HTML) $(OALSPEC).sgml
67         mv $(OALSPEC)    $(OALSPEC)-specs
68         -rm  $(OALSPEC)-specs.html.zip
69         zip -r9 $(OALSPEC)-specs.html.zip   $(OALSPEC)-specs/
70
71 specs: specs-ps specs-html
72
73
74 ## -----------------------------------------------------------
75 ## Annotated Version - including annotation seections
76 ##  (not Programmer's Guide, no examples)
77 annotated-ps:
78         -rm -f  $(OALSPEC)-annote.ps
79         cp ent-marks-annotated.sgml ent-marks.sgml
80         $(DB2PS) $(OALSPEC).sgml
81         mv $(OALSPEC).ps $(OALSPEC)-annote.ps
82         zip -9 $(OALSPEC)-annote.ps.zip $(OALSPEC)-annote.ps
83
84 annotated-html:
85         -rm -rf $(OALSPEC)-annote/
86         cp ent-marks-annotated.sgml ent-marks.sgml
87         $(DB2HTML) $(OALSPEC).sgml
88         mv $(OALSPEC)    $(OALSPEC)-annote
89         -rm  $(OALSPEC)-annote.html.zip
90         zip -r9  $(OALSPEC)-annote.html.zip $(OALSPEC)-annote/
91
92 annotated: annotated-ps annotated-html
93
94 ## ----------------------------------------------------------
95 ## FULL Version - include's the RFC's and everything else
96 ##
97 full-ps:
98         -rm -f  $(OALSPEC)-full.ps
99         cp ent-marks-full.sgml ent-marks.sgml
100         $(DB2PS) $(OALSPEC).sgml
101         mv $(OALSPEC).ps $(OALSPEC)-full.ps
102         zip -9 $(OALSPEC)-full.ps.zip $(OALSPEC)-full.ps
103
104 full-html:
105         -rm -rf $(OALSPEC)-full/
106         cp ent-marks-full.sgml ent-marks.sgml
107         $(DB2HTML) $(OALSPEC).sgml
108         mv $(OALSPEC)    $(OALSPEC)-full
109         -rm  $(OALSPEC)-full.html.zip
110         zip -r9 $(OALSPEC)-full.html.zip   $(OALSPEC)-full/
111
112 full: full-ps full-html
113
114
115 ## ----------------------------------------------------------
116 ## ZIP - create archive
117 ##
118
119
120
121 clean:  db_clean texi_clean
122
123 db_clean:
124         -rm -f $(OALSPEC).dvi
125         -rm -f $(OALSPEC).aux
126         -rm -f $(OALSPEC).log
127         -rm -f $(OALSPEC).tex
128         -rm -rf $(OALSPEC).junk
129         -rm -f \#*\#
130         -rm -f *~
131
132 texi_clean:
133         @echo "Not done."
134
135 install:
136         @echo "Not done."
137
138 distclean: clean
139         -rm -rf \
140         $(OALSPEC)-full/        \
141         $(OALSPEC)-full.ps      \
142         $(OALSPEC)-annote/      \
143         $(OALSPEC)-annote.ps    \
144         $(OALSPEC)-specs/       \
145         $(OALSPEC)-specs.ps     \
146         *.zip
147
148