On 2012-11-10, Miguel Guedes wrote:
> %.o: %.c
> @echo -e "[C] `basename $<`
> @$(CC) $(CFLAGS) -c $< -o $@
>
> $(bin): $(bin_OBJECTS)
> @echo "\033[1;32m[L] `basename $@`\033[0m"
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...
--
Best regards!
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make