[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to exit the parent_make immediately when get an error in submake
From: |
Tao T |
Subject: |
Re: how to exit the parent_make immediately when get an error in submake |
Date: |
Tue, 25 Nov 2008 07:12:19 -0800 (PST) |
for some reason it seems more complicated to get rid of shell.
do you have any suggestion to use shell? thanks~
currently my command have to change to :BUILDUNITS := $(shell $(foreach
unit,$(ALL_UNITS),cd $(REPOSITORY_ROOT)/units/$(unit) && $(MAKE)
$(MAKECMDGOALS) BUILD_TYPE=$(BUILD_TYPE) 1>&2;))
It looks more complicated.
thanks and BR,
Tao
Greg Chicares-2 wrote:
>
> On 2008-11-25 09:45Z, Tao T wrote:
>> I just use this kind of command to achieve recursive make call:
>> BUILDUNITS := $(shell cd $(WORKAREA)/sub_dir && $(MAKE) $(MAKECMDGOALS))
>
> Why not avoid $(shell) and use make's own directory-change option?
>
> .PHONY: all
> all:
> $(MAKE) --directory=$(WORKAREA)/sub_dir $(MAKECMDGOALS)
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>
>
:-((:-((:,(
--
View this message in context:
http://www.nabble.com/how-to-exit-the-parent_make-immediately-when-get-an-error-in-submake-tp20660308p20682301.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.