summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-10-11 15:43:44 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2016-10-12 17:36:35 +0200
commit85ba409967bb0327b85460639080214b3997fc17 (patch)
tree43a7b46078a3c2cf4c1c51f204ac811498921dd8 /src/mapi
parent7e86b2ddae32fc86fc684a0dcf32a87a0d795267 (diff)
downloadexternal_mesa3d-85ba409967bb0327b85460639080214b3997fc17.zip
external_mesa3d-85ba409967bb0327b85460639080214b3997fc17.tar.gz
external_mesa3d-85ba409967bb0327b85460639080214b3997fc17.tar.bz2
mapi: fix out-of-tree build dependencies
We shouldn't be using wildcard here in the first place, but changing that is some effort. As it stands, make -p confirms that glapi_gen_mapi_deps only contains mapi_abi.py when building outside the Mesa tree. As a result, only some of the tables were updated when XML files change, but not the tables for shared glapi. This change ensures that we pick up the XML files and scripts from the source tree as dependencies also for shared glapi. Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am
index d6bf5d8..46afe3b 100644
--- a/src/mapi/Makefile.am
+++ b/src/mapi/Makefile.am
@@ -56,8 +56,8 @@ PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
glapi_gen_mapi_deps := \
mapi_abi.py \
- $(wildcard glapi/gen/*.xml) \
- $(wildcard glapi/gen/*.py)
+ $(wildcard $(top_srcdir)/src/mapi/glapi/gen/*.xml) \
+ $(wildcard $(top_srcdir)/src/mapi/glapi/gen/*.py)
if HAVE_SHARED_GLAPI
BUILT_SOURCES += shared-glapi/glapi_mapi_tmp.h