title: Multiple if statements in makefile conditionals
body: <p>The make documentation says the syntax of a <strong>complex conditional</strong> is as follows:</p>
  
  <pre><code>conditional-directive-one
  text-if-one-is-true
  else conditional-directive-two
  text-if-two-is-true
  else
  text-if-one-and-two-are-false
  endif
  </code></pre>
  
  <p>But I don't understand how to use this syntax to rewrite the following piece of code:</p>
  
  <pre><code>ifeq ($(option), 1)
  CC=gcc
  @echo use gcc
  else ifeq($(option), 2)
  CC=clang
  @echo use clang
  else
  CC=mipsel-linux-gcc
  @echo use mipsel-linux-gcc
  endif
  
  #first target
  foo: ;
  </code></pre>