Can I use make conditionals with elif too?
I can do simple checks with make's conditionals, like that:
var = yes
ifeq $(var) "yes"; then
echo "yes"
else
echo "no"
fi
But the docs say nothing about elif. Can I do it like the following ?
var = yes
ifeq $(var) "yes"; then
echo "yes"
elifeq $(var) "no"; then
echo "no"
else
echo "invalid"
fi
If not, is that possible at all, or do I have to make nested conditions or use test ?
from Recent Questions - Stack Overflow https://ift.tt/35RvrVu
https://ift.tt/eA8V8J
Comments
Post a Comment