title: How to include makefile dynamically
body: <p>Now I have two makefiles, A.mk and B.mk.</p>
  
  <p>A.mk will include B.mk
  But B.mk is dynamically generated by some command which is executed in A.mk</p>
  
  <p>Here is the pseudo code of A.mk</p>
  
  <pre><code>command to generate B.mk 
  include B.mk
  compile and link
  </code></pre>
  
  <p>The question is the include command is something like #include macro in C file. the A.mk try to load the B.mk before the command is executed.</p>
  
  <p>Does anyone can give me some advise?</p>
  
  <p>Many Thanks
  Jerry</p>