Recursive Makefile howto

Manavendra Nath Manav mnm.kernel at gmail.com
Fri Jan 27 01:13:10 EST 2012


Hi All,

I have developed a Makefile which recursively builds the code spread
across multiple directories, each having it's own Makefile.

build_all: targetA \
               targetB \
               target C

Now, the problem is that even when the Makefile of targetA fails, the
master Makefile continues building with targetB and targetC. I can
also see the make errors being printed on console. I want the make to
stop immediately at the first error encountered in any target
Makefile. How to do this?

-- 
Manavendra Nath Manav



More information about the Kernelnewbies mailing list