Hello,
I think it's a good idea for Makefile debugging.
Why not use the Makefile syntax $(if x,T,F) instead of the shell condition ?
Philip Prindeville wrote:
> +var.%:
> + @if [ "$(origin $*)" = "undefined" ]; then \
> + echo "Undefined!">&2 ; \
> + else \
> + echo '$*='"'"'$($*)'"'" ; \
This line could be simpler.
I suggest this version:
var.% :
@ $(if $(filter undefined, $(origin $*)), \
echo "$* undefined" >&2, \
echo "$* = '$($*)'" \
)
--
Thomas
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel