On 31 March 2017 at 16:33, Lionel Landwerlin <lionel.g.landwer...@intel.com> wrote: > On 31/03/17 16:21, Emil Velikov wrote: >> >> On 31 March 2017 at 14:40, Lionel Landwerlin >> <lionel.g.landwer...@intel.com> wrote: >>> >>> v2: use Emil's recommendation >>> change rule to closer to genxml/genX_bits.h >>> >>> Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> >>> --- >>> src/intel/Makefile.genxml.am | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/src/intel/Makefile.genxml.am b/src/intel/Makefile.genxml.am >>> index 05a12f8f77..e34536d37c 100644 >>> --- a/src/intel/Makefile.genxml.am >>> +++ b/src/intel/Makefile.genxml.am >>> @@ -34,9 +34,9 @@ $(GENXML_GENERATED_PACK_FILES): >>> genxml/gen_pack_header.py >>> $(MKDIR_GEN) >>> $(PYTHON_GEN) $(srcdir)/genxml/gen_pack_header.py $< > $@ || >>> ($(RM) $@; false) >>> >>> -genxml/genX_xml.h: $(GENXML_XML_FILES) genxml/gen_zipped_file.py >>> +genxml/genX_xml.h: genxml/gen_zipped_file.py $(GENXML_XML_FILES) >>> $(MKDIR_GEN) >>> - $(AM_V_GEN) $(PYTHON2) $(srcdir)/genxml/gen_zipped_file.py >>> $(GENXML_XML_FILES) > $@ || ($(RM) $@; false) >>> + $(PYTHON_GEN) $< $(GENXML_XML_FILES:%=$(srcdir)/%) > $@ || ($(RM) >>> $@; false) >>> >> This is not what I recommended :-( If my suggestion is unclear or >> buggy please say so. >> >> -Emil >> > Replacing "$(srcdir)/genxml/gen_zipped_file.py" by "$<" isn't right? > I think that's the only difference from what was in your email.
Barring the genX_bits.h case, we expand the script name throughout mesa. This way you don't really care the way the dependencies are listed, whether a new one gets added, etc. -Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev