A makefile here has nested if statements to assign variable values and targets to be built. The current nested structure isn't really a nest - it is a series of if statements: There isn't any use of else.
Is this because makefiles don't have an equivalent of elseIf?
Current structure (indentations added for readability in this post)
If condition x
if condition x.x
blah
endif
if condition x.y
blah blah
endif
endif
if condition y
if condition y.x
blah
endif
if condition y.y
blah blah
endif
endif
Pseudocod-ish version of desired structure:
If condition x
if condition x.x
blah
else
if condition x.y
blah blah
endif
else
if condition y
if condition y.x
blah
else
if condition y.y
blah blah
endif
endif
Aucun commentaire:
Enregistrer un commentaire