102f4aeb0Sopenharmony_ci#!gmake
202f4aeb0Sopenharmony_ci
302f4aeb0Sopenharmony_ci# XSLT processor - other possibilities like Saxon exist
402f4aeb0Sopenharmony_ciXSLT	= xsltproc --nonet
502f4aeb0Sopenharmony_ciSED	= sed
602f4aeb0Sopenharmony_ci
702f4aeb0Sopenharmony_ci# Profiling options for xsltproc
802f4aeb0Sopenharmony_ciXSLTOPTS =
902f4aeb0Sopenharmony_ci
1002f4aeb0Sopenharmony_ci# Location of locally customized stylesheet, which imports
1102f4aeb0Sopenharmony_ci# the Docbook modular stylesheets, and specifically the
1202f4aeb0Sopenharmony_ci# stylesheet to convert Docbook+MathML => XHTML+MathML
1302f4aeb0Sopenharmony_ci# DB2XHTML = opengl-man.xsl
1402f4aeb0Sopenharmony_ciDB2XHTML = egl-man.xsl
1502f4aeb0Sopenharmony_ci
1602f4aeb0Sopenharmony_ci.SUFFIXES: .gl .xml .html .xhtml .ck.xhtml .tex .pdf .3G .tar .tar.gz
1702f4aeb0Sopenharmony_ci.PHONY: man html pdf tex
1802f4aeb0Sopenharmony_ci
1902f4aeb0Sopenharmony_ci# We now generate the EGL man pages as .html instead of .xml
2002f4aeb0Sopenharmony_ci# because they don't include any MathML
2102f4aeb0Sopenharmony_ci
2202f4aeb0Sopenharmony_ci%.html: ../%.xml $(DB2XHTML)
2302f4aeb0Sopenharmony_ci	$(XSLT) $(XSLTOPTS) --xinclude -o $@.tmp $(DB2XHTML) $<
2402f4aeb0Sopenharmony_ci	$(SED) 's/<?xml-stylesheet/<!-- saved from url=(0013)about:internet -->\n<?xml-stylesheet/g' $@.tmp | \
2502f4aeb0Sopenharmony_ci	    $(SED) 's#http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd#xhtml1-transitional.dtd#g' > $@
2602f4aeb0Sopenharmony_ci	$(RM) $@.tmp
2702f4aeb0Sopenharmony_ci
2802f4aeb0Sopenharmony_ci# EGL man pages
2902f4aeb0Sopenharmony_ciEGLXML = \
3002f4aeb0Sopenharmony_ci    eglBindAPI.html \
3102f4aeb0Sopenharmony_ci    eglBindTexImage.html \
3202f4aeb0Sopenharmony_ci    eglChooseConfig.html \
3302f4aeb0Sopenharmony_ci    eglCopyBuffers.html \
3402f4aeb0Sopenharmony_ci    eglCreateContext.html \
3502f4aeb0Sopenharmony_ci    eglCreatePbufferSurface.html \
3602f4aeb0Sopenharmony_ci    eglCreatePbufferFromClientBuffer.html \
3702f4aeb0Sopenharmony_ci    eglCreatePixmapSurface.html \
3802f4aeb0Sopenharmony_ci    eglCreateWindowSurface.html \
3902f4aeb0Sopenharmony_ci    eglDestroyContext.html \
4002f4aeb0Sopenharmony_ci    eglDestroySurface.html \
4102f4aeb0Sopenharmony_ci    eglGetConfigAttrib.html \
4202f4aeb0Sopenharmony_ci    eglGetConfigs.html \
4302f4aeb0Sopenharmony_ci    eglGetCurrentContext.html \
4402f4aeb0Sopenharmony_ci    eglGetCurrentDisplay.html \
4502f4aeb0Sopenharmony_ci    eglGetCurrentSurface.html \
4602f4aeb0Sopenharmony_ci    eglGetDisplay.html \
4702f4aeb0Sopenharmony_ci    eglGetError.html \
4802f4aeb0Sopenharmony_ci    eglGetProcAddress.html \
4902f4aeb0Sopenharmony_ci    eglInitialize.html \
5002f4aeb0Sopenharmony_ci    eglIntro.html \
5102f4aeb0Sopenharmony_ci    eglMakeCurrent.html \
5202f4aeb0Sopenharmony_ci    eglQueryAPI.html \
5302f4aeb0Sopenharmony_ci    eglQueryContext.html \
5402f4aeb0Sopenharmony_ci    eglQueryString.html \
5502f4aeb0Sopenharmony_ci    eglQuerySurface.html \
5602f4aeb0Sopenharmony_ci    eglReleaseTexImage.html \
5702f4aeb0Sopenharmony_ci    eglReleaseThread.html \
5802f4aeb0Sopenharmony_ci    eglSurfaceAttrib.html \
5902f4aeb0Sopenharmony_ci    eglSwapBuffers.html \
6002f4aeb0Sopenharmony_ci    eglSwapInterval.html \
6102f4aeb0Sopenharmony_ci    eglTerminate.html \
6202f4aeb0Sopenharmony_ci    eglWaitClient.html \
6302f4aeb0Sopenharmony_ci    eglWaitGL.html \
6402f4aeb0Sopenharmony_ci    eglWaitNative.html
6502f4aeb0Sopenharmony_ci
6602f4aeb0Sopenharmony_ci# XML man page source and XHTML targets
6702f4aeb0Sopenharmony_ciXML    = $(EGLXML)
6802f4aeb0Sopenharmony_ci
6902f4aeb0Sopenharmony_cidefault: $(XML)
7002f4aeb0Sopenharmony_ci
7102f4aeb0Sopenharmony_ciclobber clean:
7202f4aeb0Sopenharmony_ci	$(RM) $(XML)
73