[Mesa-dev] [PATCH 3/3] genxml: avoid using GNU make extensions

Jonathan Gray jsg at jsg.id.au
Fri Apr 22 15:21:40 UTC 2016


Avoid using % in target, a GNU make extension.  Allows this to build on OpenBSD.

Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
---
 src/intel/genxml/Makefile.am | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am
index be3ad41..57618a0 100644
--- a/src/intel/genxml/Makefile.am
+++ b/src/intel/genxml/Makefile.am
@@ -28,7 +28,19 @@ BUILT_SOURCES =                                         \
 
 PYTHON3_GEN = $(AM_V_GEN)$(PYTHON3) $(PYTHON_FLAGS)
 
-%_pack.h : %.xml gen_pack_header.py
-	$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py $< > $@
+gen6_pack.h : gen6.xml gen_pack_header.py
+	$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen6.xml > $@
+
+gen7_pack.h : gen7.xml gen_pack_header.py
+	$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen7.xml > $@
+
+gen75_pack.h : gen75.xml gen_pack_header.py
+	$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen75.xml > $@
+
+gen8_pack.h : gen8.xml gen_pack_header.py
+	$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen8.xml > $@
+
+gen9_pack.h : gen9.xml gen_pack_header.py
+	$(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen9.xml > $@
 
 CLEANFILES = $(BUILT_SOURCES)
-- 
2.8.1



More information about the mesa-dev mailing list