diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-27 09:21:38 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-27 09:21:38 +0100 |
commit | bd86a22d1a17fc33a32e80e48eec3b4338081a69 (patch) | |
tree | a77bb4c958d3653d6d45713da03b15427bee9dfb /specs/scripts/Makefile | |
parent | 8d6f8f3b24af9a1a788f2385e8de8855605f0ac7 (diff) |
Move all API specs to a separate dir.
Diffstat (limited to 'specs/scripts/Makefile')
-rw-r--r-- | specs/scripts/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/specs/scripts/Makefile b/specs/scripts/Makefile new file mode 100644 index 00000000..2ea20661 --- /dev/null +++ b/specs/scripts/Makefile @@ -0,0 +1,51 @@ + +all: \ + download \ + glapi.py glxapi.py wglapi.py \ + glparams.py wglenum.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: + wget -N http://www.opengl.org/registry/api/$@ + +%.tm: + wget -N http://www.opengl.org/registry/api/$@ + +glapi.py: glspec.py gl.tm gl.spec + python glspec.py gl gl.tm gl.spec > $@ + +glxapi.py: glspec.py glx.tm glx.spec glxext.spec + python glspec.py glX glx.tm glx.spec glxext.spec > $@ + +wglapi.py: glspec.py wgl.tm wgl.spec wglext.spec + python glspec.py wgl wgl.tm wgl.spec wglext.spec > $@ + +glparams.py: glparams.sed enum.spec sort.sh + sed -n -f glparams.sed enum.spec | ./sort.sh > $@ + +wglenum.py: wglenum.sh wglenumext.spec + ./wglenum.sh wglenumext.spec > $@ + +clean: + rm -f \ + glapi.py glxapi.py wglapi.py \ + glparams.py wglenum.py + +.PRECIOUS: %.spec %.tm + +.PHONY: download clean |