SF.net SVN: gar:[23783] csw/mgar/gar/v2/gar.lib.mk
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Wed Jun 11 11:47:47 CEST 2014
Revision: 23783
http://sourceforge.net/p/gar/code/23783
Author: chninkel
Date: 2014-06-11 09:47:46 +0000 (Wed, 11 Jun 2014)
Log Message:
-----------
Fix the usage of MAKEFLAGS so make options are properly passed to sub-Makefile
$(MAKE) MAKEFLAGS= is supposed to prevent make flags to be passed to the sub-make
command according to http://www.gnu.org/software/make/manual/make.html#Options_002fRecursion.
In practice, it doesn't prevent it for the $(MAKE) command called but only for the other sub-make
that could be launched by this command. The correct way to achieve what we want is to use the
following syntax: MAKEFLAGS= $(MAKE).
This allow for instance the "-j" option to be correctly passed to sub-makefiles.
Modified Paths:
--------------
csw/mgar/gar/v2/gar.lib.mk
Modified: csw/mgar/gar/v2/gar.lib.mk
===================================================================
--- csw/mgar/gar/v2/gar.lib.mk 2014-06-11 07:25:58 UTC (rev 23782)
+++ csw/mgar/gar/v2/gar.lib.mk 2014-06-11 09:47:46 UTC (rev 23783)
@@ -872,17 +872,17 @@
# build from a standard gnu-style makefile's default rule.
build-%/Makefile:
@echo " ==> Running make in $*"
- cd $* && /usr/bin/env -i $(BUILD_ENV) $(MAKE) MAKEFLAGS= $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_VARS),$(TTT)="$(BUILD_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(BUILD_ARGS)
+ cd $* && /usr/bin/env -i $(BUILD_ENV) MAKEFLAGS= $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_VARS),$(TTT)="$(BUILD_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(BUILD_ARGS)
@$(MAKECOOKIE)
build-%/makefile:
@echo " ==> Running make in $*"
- cd $* && /usr/bin/env -i $(BUILD_ENV) $(MAKE) MAKEFLAGS= $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_VARS),$(TTT)="$(BUILD_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(BUILD_ARGS)
+ cd $* && /usr/bin/env -i $(BUILD_ENV) MAKEFLAGS= $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_VARS),$(TTT)="$(BUILD_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(BUILD_ARGS)
@$(MAKECOOKIE)
build-%/GNUmakefile:
@echo " ==> Running make in $*"
- cd $* && /usr/bin/env -i $(BUILD_ENV) $(MAKE) MAKEFLAGS= $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_VARS),$(TTT)="$(BUILD_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(BUILD_ARGS)
+ cd $* && /usr/bin/env -i $(BUILD_ENV) MAKEFLAGS= $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_VARS),$(TTT)="$(BUILD_OVERRIDE_VAR_$(TTT))") $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $(OBJDIR) $(BUILD_ARGS)
@$(MAKECOOKIE)
build-%/Jamfile:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list