summaryrefslogtreecommitdiffstats
path: root/src/intel/Makefile.genxml.am
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2016-10-16 16:41:55 +1100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-18 17:06:42 +0100
commit27572db46ddff6f51773a800b2d50ad3be609a91 (patch)
treecab0c532f9b34214ac61b9a3d99098bae4313744 /src/intel/Makefile.genxml.am
parent9898c60745504ade362711c4d6d0466f45268367 (diff)
downloadexternal_mesa3d-27572db46ddff6f51773a800b2d50ad3be609a91.zip
external_mesa3d-27572db46ddff6f51773a800b2d50ad3be609a91.tar.gz
external_mesa3d-27572db46ddff6f51773a800b2d50ad3be609a91.tar.bz2
genxml: avoid using a GNU make pattern rule
% pattern rules are a GNU extension. Convert the use of one to a inference rule to allow this to build on OpenBSD. This is a related change to the one made in e3d43dc5eae5271e2c87bab702aa7409d3dd0b23 Signed-off-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/intel/Makefile.genxml.am')
-rw-r--r--src/intel/Makefile.genxml.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intel/Makefile.genxml.am b/src/intel/Makefile.genxml.am
index 519f30e..39f579c 100644
--- a/src/intel/Makefile.genxml.am
+++ b/src/intel/Makefile.genxml.am
@@ -34,7 +34,10 @@ $(GENXML_GENERATED_FILES): genxml/gen_pack_header.py
# xxd generates variable names based on the path of the input file. We
# prefer to generate our own name here, so it doesn't vary from
# in/out-of-tree builds.
-%_xml.h: %.xml Makefile
+
+$(GENXML_GENERATED_FILES): Makefile
+
+.xml_xml.h:
$(MKDIR_GEN)
$(AM_V_GEN) echo -n "static const uint8_t " > $@; \
echo "$(@F)_xml[] = {" | sed -e 's,_xml.h,,' >> $@; \