build: fix out of tree generation of glapi_mapi_tmp.h
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Thu, 19 Jul 2012 02:30:08 +0000 (12:30 +1000)
committerMatt Turner <mattst88@gmail.com>
Mon, 13 Aug 2012 19:24:25 +0000 (12:24 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
src/mapi/glapi/gen/Makefile.am

index 52aeb3a6de6b59ae19e40a7553a1c4bc1b55017b..499ec09a8d2aa9ab433824e3160ae339f167952e 100644 (file)
@@ -176,7 +176,7 @@ $(XORG_GLAPI_DIR)/%.h: $(MESA_GLAPI_DIR)/%.h
 
 $(MESA_GLAPI_DIR)/glapi_mapi_tmp.h: $(MESA_MAPI_DIR)/mapi_abi.py $(COMMON_ES)
        $(PYTHON_GEN) $< \
-               --printer glapi --mode lib gl_and_es_API.xml > $@
+               --printer glapi --mode lib $(srcdir)/gl_and_es_API.xml > $@
 
 $(MESA_GLAPI_DIR)/glprocs.h: gl_procs.py $(COMMON)
        $(PYTHON_GEN) $< -f $(srcdir)/gl_API.xml > $@