On 12/11/12 20:39, Oleksandr Gavenko wrote:
I have a little suggestion to remove 'basename' in flavour of $(nodir ...).

Look to example to decide if that applicable for you:

   .PHONY: test
   test: $(shell which gcc)
       echo `basename $<`
       echo $(notdir $<)


   $ make test
   echo `basename /usr/bin/gcc`
   gcc
   echo gcc
   gcc

This must a little improve performance...


Great tip, Oleksandr - thanks!

--
Cheers,

Miguel

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to