<p dir="ltr"><br>
On May 1, 2016 1:56 AM, "Emil Velikov" <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
><br>
> On 1 May 2016 at 09:49, Jonathan Gray <<a href="mailto:jsg@jsg.id.au">jsg@jsg.id.au</a>> wrote:<br>
> > On Fri, Apr 22, 2016 at 05:57:40PM +0100, Emil Velikov wrote:<br>
> >> On 22 April 2016 at 16:21, Jonathan Gray <<a href="mailto:jsg@jsg.id.au">jsg@jsg.id.au</a>> wrote:<br>
> >> > Avoid using % in target, a GNU make extension. Allows this to build on OpenBSD.<br>
> >> ><br>
> >> > Signed-off-by: Jonathan Gray <<a href="mailto:jsg@jsg.id.au">jsg@jsg.id.au</a>><br>
> >> > ---<br>
> >> > src/intel/genxml/Makefile.am | 16 ++++++++++++++--<br>
> >> > 1 file changed, 14 insertions(+), 2 deletions(-)<br>
> >> ><br>
> >> > diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am<br>
> >> > index be3ad41..57618a0 100644<br>
> >> > --- a/src/intel/genxml/Makefile.am<br>
> >> > +++ b/src/intel/genxml/Makefile.am<br>
> >> > @@ -28,7 +28,19 @@ BUILT_SOURCES = \<br>
> >> ><br>
> >> > PYTHON3_GEN = $(AM_V_GEN)$(PYTHON3) $(PYTHON_FLAGS)<br>
> >> ><br>
> >> > -%_pack.h : %.xml gen_pack_header.py<br>
> >> > - $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py $< > $@<br>
> >> > +gen6_pack.h : gen6.xml gen_pack_header.py<br>
> >> > + $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen6.xml > $@<br>
> >> > +<br>
> >> > +gen7_pack.h : gen7.xml gen_pack_header.py<br>
> >> > + $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen7.xml > $@<br>
> >> > +<br>
> >> > +gen75_pack.h : gen75.xml gen_pack_header.py<br>
> >> > + $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen75.xml > $@<br>
> >> > +<br>
> >> > +gen8_pack.h : gen8.xml gen_pack_header.py<br>
> >> > + $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen8.xml > $@<br>
> >> > +<br>
> >> > +gen9_pack.h : gen9.xml gen_pack_header.py<br>
> >> > + $(PYTHON3_GEN) $(srcdir)/gen_pack_header.py gen9.xml > $@<br>
> >> ><br>
> >> One can use a similar approach as the one in<br>
> >> src/mesa/drivers/dri/common/xmlpool/Makefile.am.<br>
> >><br>
> >> Namely use SUFFIX(es).<br>
> >> - add a couple of variables at the top<br>
> >> - rename the generated headers to have distinct suffix (%.pack.h,<br>
> >> %.gen.h or anything else along those lines)<br>
> >><br>
> >> It's up-to others to decide which option to go for.<br>
> >><br>
> >> Thanks<br>
> >> Emil<br>
> ><br>
> > So which is it to be? Should I send another patch for the other approach?<br>
><br>
> Jason, Chad do you have any preference on the topic ? Should one tweak<br>
> the generic rule to work everywhere or just expand it.</p>
<p dir="ltr">genX.pack.h sounds good to me</p>
<p dir="ltr">> Thanks<br>
> Emil<br>
</p>