intel: automake: replace direct basename $@ invokation with $(@F)
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 12 Oct 2016 18:05:29 +0000 (19:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:09:00 +0000 (11:09 +0100)
Use the shorthand make variable(s) as elsewhere in the build.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/Makefile.genxml.am

index f8b0363fa2664b62fb93b84e1a5b3f5f9fad4af1..519f30eb99358b9884a8270e3d4584931f3aecc6 100644 (file)
@@ -37,7 +37,7 @@ $(GENXML_GENERATED_FILES): genxml/gen_pack_header.py
 %_xml.h:  %.xml Makefile
        $(MKDIR_GEN)
        $(AM_V_GEN) echo -n "static const uint8_t " > $@; \
-       echo "`basename $@`_xml[] = {" | sed -e 's,_xml.h,,' >> $@; \
+       echo "$(@F)_xml[] = {" | sed -e 's,_xml.h,,' >> $@; \
        cat $< | $(XXD) -i >> $@; \
        echo "};" >> $@