Re: Recursive Makefile howto

2012-01-28 Thread Bernd Petrovitsch
On Fre, 2012-01-27 at 10:02 +0100, Kristof Provost wrote: [...] > Try something like this instead: > > build: > for d in $(DIRS) ; \ > do \ > $(MAKE) -C $$d $@ || exit $? ; \ > done Or build: set -e; for d in $(DIRS); \ do \

Re: Recursive Makefile howto

2012-01-28 Thread Manavendra Nath Manav
On Fri, Jan 27, 2012 at 9:28 PM, Dave Hylands wrote: > Hi Manavendra, > > On Thu, Jan 26, 2012 at 10:13 PM, Manavendra Nath Manav > wrote: >> Hi All, >> >> I have developed a Makefile which recursively builds the code spread >> across multiple directories, each having it's own Makefile. > > You m

Re: Recursive Makefile howto

2012-01-27 Thread Dave Hylands
Hi Manavendra, On Thu, Jan 26, 2012 at 10:13 PM, Manavendra Nath Manav wrote: > Hi All, > > I have developed a Makefile which recursively builds the code spread > across multiple directories, each having it's own Makefile. You may want to reconsider your approach: http://aegis.sourceforge.net/au

Re: Recursive Makefile howto

2012-01-27 Thread Kristof Provost
On 2012-01-27 17:38:11 (+0530), Manavendra Nath Manav wrote: > Now, I am getting error in the make part of "Build_sqllib" but the > makefile continues to next line. I guess, I need to add "|| exit" also > with this make command. Kristof, can you pls also explain me the > meanings of $$d, $@, and

Re: Recursive Makefile howto

2012-01-27 Thread Manavendra Nath Manav
On Fri, Jan 27, 2012 at 2:32 PM, Kristof Provost wrote: > On 2012-01-27 11:43:10 (+0530), Manavendra Nath Manav > wrote: >> I have developed a Makefile which recursively builds the code spread >> across multiple directories, each having it's own Makefile. >> >> build_all: targetA \ >>          

Re: Recursive Makefile howto

2012-01-27 Thread Kristof Provost
On 2012-01-27 11:43:10 (+0530), Manavendra Nath Manav wrote: > 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

Recursive Makefile howto

2012-01-26 Thread Manavendra Nath Manav
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 con