genxml: avoid using a GNU make pattern rule
authorJonathan Gray <jsg@jsg.id.au>
Sun, 16 Oct 2016 05:41:55 +0000 (16:41 +1100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 18 Oct 2016 16:06:42 +0000 (17:06 +0100)
% 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>
src/intel/Makefile.genxml.am

index 519f30eb99358b9884a8270e3d4584931f3aecc6..39f579c929fc8e06fb5a99a663c36e33e7af8223 100644 (file)
@@ -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,,' >> $@; \