102f4aeb0Sopenharmony_ci#!gmake
202f4aeb0Sopenharmony_ci
302f4aeb0Sopenharmony_ci# XSLT processor - other possibilities like Saxon exist
402f4aeb0Sopenharmony_ciXSLT	= xsltproc --nonet
502f4aeb0Sopenharmony_ci
602f4aeb0Sopenharmony_ci# Location of locally customized stylesheet, which imports
702f4aeb0Sopenharmony_ci# the Docbook modular stylesheets, and specifically the
802f4aeb0Sopenharmony_ci# stylesheet to convert Docbook 5 + MathML => HTML5
902f4aeb0Sopenharmony_ciDB2XHTML = khronos-man.xsl
1002f4aeb0Sopenharmony_ci
1102f4aeb0Sopenharmony_ci.SUFFIXES: .xml .html .xhtml
1202f4aeb0Sopenharmony_ci
1302f4aeb0Sopenharmony_ci# EGL man pages
1402f4aeb0Sopenharmony_ci
1502f4aeb0Sopenharmony_ciEGLXML = \
1602f4aeb0Sopenharmony_ci    eglBindAPI.xhtml \
1702f4aeb0Sopenharmony_ci    eglBindTexImage.xhtml \
1802f4aeb0Sopenharmony_ci    eglChooseConfig.xhtml \
1902f4aeb0Sopenharmony_ci    eglClientWaitSync.xhtml \
2002f4aeb0Sopenharmony_ci    eglCopyBuffers.xhtml \
2102f4aeb0Sopenharmony_ci    eglCreateContext.xhtml \
2202f4aeb0Sopenharmony_ci    eglCreateImage.xhtml \
2302f4aeb0Sopenharmony_ci    eglCreatePbufferSurface.xhtml \
2402f4aeb0Sopenharmony_ci    eglCreatePbufferFromClientBuffer.xhtml \
2502f4aeb0Sopenharmony_ci    eglCreatePixmapSurface.xhtml \
2602f4aeb0Sopenharmony_ci    eglCreatePlatformPixmapSurface.xhtml \
2702f4aeb0Sopenharmony_ci    eglCreatePlatformWindowSurface.xhtml \
2802f4aeb0Sopenharmony_ci    eglCreateSync.xhtml \
2902f4aeb0Sopenharmony_ci    eglCreateWindowSurface.xhtml \
3002f4aeb0Sopenharmony_ci    eglDestroyContext.xhtml \
3102f4aeb0Sopenharmony_ci    eglDestroyImage.xhtml \
3202f4aeb0Sopenharmony_ci    eglDestroySurface.xhtml \
3302f4aeb0Sopenharmony_ci    eglDestroySync.xhtml \
3402f4aeb0Sopenharmony_ci    eglGetConfigAttrib.xhtml \
3502f4aeb0Sopenharmony_ci    eglGetConfigs.xhtml \
3602f4aeb0Sopenharmony_ci    eglGetCurrentContext.xhtml \
3702f4aeb0Sopenharmony_ci    eglGetCurrentDisplay.xhtml \
3802f4aeb0Sopenharmony_ci    eglGetCurrentSurface.xhtml \
3902f4aeb0Sopenharmony_ci    eglGetDisplay.xhtml \
4002f4aeb0Sopenharmony_ci    eglGetError.xhtml \
4102f4aeb0Sopenharmony_ci    eglGetPlatformDisplay.xhtml \
4202f4aeb0Sopenharmony_ci    eglGetProcAddress.xhtml \
4302f4aeb0Sopenharmony_ci    eglGetSyncAttrib.xhtml \
4402f4aeb0Sopenharmony_ci    eglInitialize.xhtml \
4502f4aeb0Sopenharmony_ci    eglIntro.xhtml \
4602f4aeb0Sopenharmony_ci    eglMakeCurrent.xhtml \
4702f4aeb0Sopenharmony_ci    eglQueryAPI.xhtml \
4802f4aeb0Sopenharmony_ci    eglQueryContext.xhtml \
4902f4aeb0Sopenharmony_ci    eglQueryString.xhtml \
5002f4aeb0Sopenharmony_ci    eglQuerySurface.xhtml \
5102f4aeb0Sopenharmony_ci    eglReleaseTexImage.xhtml \
5202f4aeb0Sopenharmony_ci    eglReleaseThread.xhtml \
5302f4aeb0Sopenharmony_ci    eglSurfaceAttrib.xhtml \
5402f4aeb0Sopenharmony_ci    eglSwapBuffers.xhtml \
5502f4aeb0Sopenharmony_ci    eglSwapInterval.xhtml \
5602f4aeb0Sopenharmony_ci    eglTerminate.xhtml \
5702f4aeb0Sopenharmony_ci    eglWaitClient.xhtml \
5802f4aeb0Sopenharmony_ci    eglWaitGL.xhtml \
5902f4aeb0Sopenharmony_ci    eglWaitNative.xhtml \
6002f4aeb0Sopenharmony_ci    eglWaitSync.xhtml
6102f4aeb0Sopenharmony_ci
6202f4aeb0Sopenharmony_ciXML    = $(EGLXML)
6302f4aeb0Sopenharmony_ci
6402f4aeb0Sopenharmony_ci# Generate just a few files, for testing
6502f4aeb0Sopenharmony_ci#XML = glViewport.xhtml glTexImage2D.xhtml glPixelStore.xhtml
6602f4aeb0Sopenharmony_ci
6702f4aeb0Sopenharmony_cidefault: $(XML) indices
6802f4aeb0Sopenharmony_ci
6902f4aeb0Sopenharmony_ci# Dependencies on XIncluded files - none yet.
7002f4aeb0Sopenharmony_ci#
7102f4aeb0Sopenharmony_ci#glTexImage2D.xhtml glTexImage3D.xhtml \
7202f4aeb0Sopenharmony_ci#    : ../internalformattable.xml ../unsizedformattable.xml
7302f4aeb0Sopenharmony_ci#
7402f4aeb0Sopenharmony_ci## These are very conservative dependencies
7502f4aeb0Sopenharmony_ci#$(GLSLXML): $(GLSLXIFILES)
7602f4aeb0Sopenharmony_ci
7702f4aeb0Sopenharmony_ci$(XML): %.xhtml: ../%.xml $(DB2XHTML)
7802f4aeb0Sopenharmony_ci	$(XSLT) --xinclude --noout $(DB2XHTML) $<
7902f4aeb0Sopenharmony_ci
8002f4aeb0Sopenharmony_ciindices: Makefile makeindex.py $(XML)
8102f4aeb0Sopenharmony_ci	./makeindex.py . .. index.php indexflat.php
8202f4aeb0Sopenharmony_ci
8302f4aeb0Sopenharmony_ciclean:
8402f4aeb0Sopenharmony_ci	$(RM) $(XML) index.php indexflat.php
8502f4aeb0Sopenharmony_ci
8602f4aeb0Sopenharmony_ciclobber: clean
87