summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--helpers/Makefile32
2 files changed, 33 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 47f025e4..6a73307c 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 00000000..d332cacf
--- /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