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
?
Aucun commentaire:
Enregistrer un commentaire