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 > [email protected] > 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. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
