From: Jonathan Gray Date: Tue, 3 May 2016 00:25:09 +0000 (+1000) Subject: genxml: avoid using a GNU make pattern rule X-Git-Tag: upstream/17.1.0~10046 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3d43dc5eae5271e2c87bab702aa7409d3dd0b23;p=platform%2Fupstream%2Fmesa.git 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. v2: inference rules can't have additional prerequisites so add a target rule to still depend on gen_pack_header.py Signed-off-by: Jonathan Gray Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am index f493d48..0b5b3a6 100644 --- a/src/intel/genxml/Makefile.am +++ b/src/intel/genxml/Makefile.am @@ -28,7 +28,11 @@ BUILT_SOURCES = \ PYTHON3_GEN = $(AM_V_GEN)$(PYTHON3) $(PYTHON_FLAGS) -%_pack.h : %.xml gen_pack_header.py +SUFFIXES = _pack.h .xml + +$(BUILT_SOURCES): gen_pack_header.py + +.xml_pack.h: $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py $< > $@ CLEANFILES = $(BUILT_SOURCES)