3 # XSLT processor - other possibilities like Saxon exist
7 FOPDIR
= /cygdrive
/c
/man_pages
/fop-0.94
9 FOP
= $(FOPDIR
)/fop.bat
10 CONFIG
= $(FOPDIR
)/user.cfg
12 # Location of locally customized stylesheet, which imports
13 # the Docbook modular stylesheets, and the specifically
14 # stylesheet to convert Docbook+MathML => XHTML+MathML
15 DB2XHTML
= .
/ogl_prep_xml.xsl
16 #DB2PDF = ../../../../../../../../docbook-xsl-1.73.2/fo/docbook.xsl
17 DB2PDF
= .
/opengl-pdf.xsl
18 #CONFIG = ../../../../../../../../fop-0.94/user.cfg
22 .SUFFIXES
: .gl .xml .html .xhtml .ck.xhtml .
tex .pdf
.3G .
tar .
tar.gz
23 .PHONY
: man html pdf
tex
25 # ARB Ecosystem man pages
27 glBlendEquationSeparate.xml \
28 glStencilFuncSeparate.xml \
29 glStencilMaskSeparate.xml \
30 glStencilOpSeparate.xml
32 # SuperBible GL 1.5 man pages
42 glGetBufferParameteriv.xml \
43 glGetBufferPointerv.xml \
44 glGetBufferSubData.xml \
46 glGetQueryObject.xml \
51 # 3Dlabs GL 2.0 man pages
54 glBindAttribLocation.xml \
62 glEnableVertexAttribArray.xml \
63 glGetActiveAttrib.xml \
64 glGetActiveUniform.xml \
65 glGetAttachedShaders.xml \
66 glGetAttribLocation.xml \
68 glGetProgramInfoLog.xml \
70 glGetShaderInfoLog.xml \
71 glGetShaderSource.xml \
73 glGetUniformLocation.xml \
74 glGetVertexAttrib.xml \
75 glGetVertexAttribPointerv.xml \
82 glValidateProgram.xml \
84 glVertexAttribPointer.xml
86 # SGI OpenGL 1.4 man pages
91 glAreTexturesResident.xml \
98 glBlendFuncSeparate.xml \
108 glClientActiveTexture.xml \
111 glColorMaterial.xml \
113 glColorSubTable.xml \
114 glColorTableParameter.xml \
117 glCompressedTexImage1D.xml \
118 glCompressedTexImage2D.xml \
119 glCompressedTexImage3D.xml \
120 glCompressedTexSubImage1D.xml \
121 glCompressedTexSubImage2D.xml \
122 glCompressedTexSubImage3D.xml \
123 glConvolutionFilter1D.xml \
124 glConvolutionFilter2D.xml \
125 glConvolutionParameter.xml \
126 glCopyColorSubTable.xml \
127 glCopyColorTable.xml \
128 glCopyConvolutionFilter1D.xml \
129 glCopyConvolutionFilter2D.xml \
131 glCopyTexImage1D.xml \
132 glCopyTexImage2D.xml \
133 glCopyTexSubImage1D.xml \
134 glCopyTexSubImage2D.xml \
135 glCopyTexSubImage3D.xml \
138 glDeleteTextures.xml \
146 glDrawRangeElements.xml \
147 glEdgeFlagPointer.xml \
149 glEnableClientState.xml \
154 glFeedbackBuffer.xml \
157 glFogCoordPointer.xml \
165 glGetColorTableParameter.xml \
166 glGetColorTable.xml \
167 glGetCompressedTexImage.xml \
168 glGetConvolutionFilter.xml \
169 glGetConvolutionParameter.xml \
171 glGetHistogramParameter.xml \
176 glGetMinmaxParameter.xml \
180 glGetPolygonStipple.xml \
181 glGetSeparableFilter.xml \
186 glGetTexLevelParameter.xml \
187 glGetTexParameter.xml \
195 glInterleavedArrays.xml \
207 glLoadTransposeMatrix.xml \
215 glMultiDrawArrays.xml \
216 glMultiDrawElements.xml \
217 glMultiTexCoord.xml \
219 glMultTransposeMatrix.xml \
221 glNormalPointer.xml \
227 glPixelTransfer.xml \
229 glPointParameter.xml \
232 glPolygonOffset.xml \
233 glPolygonStipple.xml \
234 glPrioritizeTextures.xml \
236 glPushClientAttrib.xml \
244 glResetHistogram.xml \
247 glSampleCoverage.xml \
250 glSecondaryColorPointer.xml \
251 glSecondaryColor.xml \
253 glSeparableFilter2D.xml \
258 glTexCoordPointer.xml \
266 glTexSubImage1D.xml \
267 glTexSubImage2D.xml \
268 glTexSubImage3D.xml \
270 glVertexPointer.xml \
275 # SGI GLU 1.3 man pages
278 gluBeginPolygon.xml \
279 gluBeginSurface.xml \
281 gluBuild1DMipmapLevels.xml \
282 gluBuild1DMipmaps.xml \
283 gluBuild2DMipmapLevels.xml \
284 gluBuild2DMipmaps.xml \
285 gluBuild3DMipmapLevels.xml \
286 gluBuild3DMipmaps.xml \
287 gluCheckExtension.xml \
289 gluDeleteNurbsRenderer.xml \
290 gluDeleteQuadric.xml \
294 gluGetNurbsProperty.xml \
296 gluGetTessProperty.xml \
297 gluLoadSamplingMatrices.xml \
299 gluNewNurbsRenderer.xml \
303 gluNurbsCallbackDataEXT.xml \
304 gluNurbsCallbackData.xml \
305 gluNurbsCallback.xml \
307 gluNurbsProperty.xml \
308 gluNurbsSurface.xml \
315 gluQuadricCallback.xml \
316 gluQuadricDrawStyle.xml \
317 gluQuadricNormals.xml \
318 gluQuadricOrientation.xml \
319 gluQuadricTexture.xml \
322 gluTessBeginContour.xml \
323 gluTessBeginPolygon.xml \
324 gluTessCallback.xml \
325 gluTessEndPolygon.xml \
327 gluTessProperty.xml \
332 # SGI GLX 1.4 man pages
334 glXChooseFBConfig.xml \
335 glXChooseVisual.xml \
337 glXCreateContext.xml \
338 glXCreateGLXPixmap.xml \
339 glXCreateNewContext.xml \
340 glXCreatePbuffer.xml \
341 glXCreatePixmap.xml \
342 glXCreateWindow.xml \
343 glXDestroyContext.xml \
344 glXDestroyGLXPixmap.xml \
345 glXDestroyPbuffer.xml \
346 glXDestroyPixmap.xml \
347 glXDestroyWindow.xml \
348 glXFreeContextEXT.xml \
349 glXGetClientString.xml \
351 glXGetContextIDEXT.xml \
352 glXGetCurrentContext.xml \
353 glXGetCurrentDisplay.xml \
354 glXGetCurrentDrawable.xml \
355 glXGetCurrentReadDrawable.xml \
356 glXGetFBConfigAttrib.xml \
357 glXGetFBConfigs.xml \
358 glXGetProcAddress.xml \
359 glXGetSelectedEvent.xml \
360 glXGetVisualFromFBConfig.xml \
361 glXImportContextEXT.xml \
364 glXMakeContextCurrent.xml \
366 glXQueryContextInfoEXT.xml \
367 glXQueryContext.xml \
368 glXQueryExtensionsString.xml \
369 glXQueryExtension.xml \
370 glXQueryServerString.xml \
371 glXQueryVersion.xml \
378 # XML man page source and XHTML targets
379 GLXML
= $(SGIGLXML
) $(3DLABSXML
) $(SUPERBIBLEXML
) $(ARBXML
)
380 GLUXML
= $(SGIGLUXML
)
381 GLXXML
= $(SGIGLXXML
)
382 XML
= $(GLXML
) $(GLUXML
) $(GLXXML
)
387 %.xml
: ..
/%.xml ogl_prep_xml.xsl
388 $(XSLT
) --xinclude
-o
$@
$(DB2XHTML
) $<
390 $(OUTFILE
).xml.tmp
: $(ARBXML
)
391 $(RM
) glReference.xml.tmp
392 $(CAT
) header
>> $(OUTFILE
).xml.tmp
393 $(CAT
) gl
*.xml
>> $(OUTFILE
).xml.tmp
394 $(CAT
) footer
>> $(OUTFILE
).xml.tmp
396 %.pdf
: $(OUTFILE
).xml.tmp
397 # $(FOP) -c $(CONFIG) -xml $(OUTFILE).xml.tmp -xsl $(DB2PDF) -pdf $(OUTFILE).pdf
398 $(FOP
) -xml
$(OUTFILE
).xml.tmp
-xsl
$(DB2PDF
) -pdf
$(OUTFILE
).pdf
404 #default: remove_temp $(XML) xml pdf
414 $(RM
) $(XML
) $(OUTFILE
).pdf
*.tmp