|
From: | Miguel Guedes |
Subject: | Re: Expandable dependencies variables |
Date: | Tue, 13 Nov 2012 09:25:06 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |