Recursive make in subdirectories

Alberto picture Alberto · Feb 12, 2012 · Viewed 36.5k times · Source

How can I order make command in the Makefile to execute recursively in all subdirectories make commands (defined in the Makefile in the subdirectories)?

Answer

Eldar Abusalimov picture Eldar Abusalimov · Feb 12, 2012
  1. Read Recursive Use of Make chapter of GNU Make manual.
  2. Learn Peter Miller's Recursive Make Considered Harmful article.
  3. ...
  4. PROFIT!!!

P.S. A code snippet from my answer to a different yet related question could be used as a rough approximation.