Mesa (master): mesa: fix api source gen for out-of-tree builds

Dylan Noblesmith nobled at kemper.freedesktop.org
Mon Jul 2 15:15:55 UTC 2012


Module: Mesa
Branch: master
Commit: 261b1389eb7cc268eb90402753ca52cc481d542a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=261b1389eb7cc268eb90402753ca52cc481d542a

Author: Dylan Noblesmith <nobled at dreamwidth.org>
Date:   Thu Jun 28 20:27:15 2012 +0000

mesa: fix api source gen for out-of-tree builds

Add $(srcdir) where needed.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/Makefile.am |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am
index e52678d..44ec619 100644
--- a/src/mesa/Makefile.am
+++ b/src/mesa/Makefile.am
@@ -78,10 +78,12 @@ main/api_exec_es2_remap_helper.h: $(GLAPI)/gl_and_es_API.xml $(glapi_gen_remap_d
 main/api_exec_es2.o: main/api_exec_es2_dispatch.h main/api_exec_es2_remap_helper.h
 
 main/api_exec_es1.c: main/APIspec.xml main/es_generator.py main/APIspecutil.py main/APIspec.py
-	$(PYTHON2) $(PYTHON_FLAGS) main/es_generator.py -S main/APIspec.xml -V GLES1.1 > $@
+	$(PYTHON2) $(PYTHON_FLAGS) main/es_generator.py \
+	  -S $(srcdir)/main/APIspec.xml -V GLES1.1 > $@
 
 main/api_exec_es2.c: main/APIspec.xml main/es_generator.py main/APIspecutil.py main/APIspec.py
-	$(PYTHON2) $(PYTHON_FLAGS) main/es_generator.py -S main/APIspec.xml -V GLES2.0 > $@
+	$(PYTHON2) $(PYTHON_FLAGS) main/es_generator.py \
+	  -S $(srcdir)/main/APIspec.xml -V GLES2.0 > $@
 
 program/program_parse.tab.c program/program_parse.tab.h: program/program_parse.y
 	$(YACC) -v -d --output=program/program_parse.tab.c $<




More information about the mesa-commit mailing list