From: José Fonseca Date: Thu, 25 Nov 2010 11:22:24 +0000 (+0000) Subject: Makefile for the helpers. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=a532573829d32dd0b5e6a920b68cec62bbeb1e9a Makefile for the helpers. --- diff --git a/.gitignore b/.gitignore index 47f025e..6a73307 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,7 @@ CMakeCache.txt CMakeFiles MD5SUM -Makefile +./Makefile build cmake_install.cmake config.log diff --git a/helpers/Makefile b/helpers/Makefile new file mode 100644 index 0000000..d332cac --- /dev/null +++ b/helpers/Makefile @@ -0,0 +1,32 @@ + +all: download glapi.py glxapi.py wglapi.py + +download: \ + enum.spec \ + enumext.spec \ + gl.spec \ + gl.tm \ + glxenum.spec \ + glxenumext.spec \ + glx.spec \ + glxext.spec \ + glx.tm \ + wglenum.spec \ + wglenumext.spec \ + wgl.spec \ + wglext.spec \ + wgl.tm + +%.spec %.tm: + wget -N http://www.opengl.org/registry/api/$@ + +glapi.py: spec.py gl.tm gl.spec + python spec.py gl gl.tm gl.spec > $@ + +glxapi.py: spec.py glx.tm glx.spec glxext.spec + python spec.py glX glx.tm glx.spec glxext.spec > $@ + +wglapi.py: spec.py wgl.tm wgl.spec wglext.spec + python spec.py wgl wgl.tm wgl.spec wglext.spec > $@ + +.PRECIOUS: %.spec %.tm