From: tho Date: Thu, 9 Jul 2009 09:56:44 +0000 (+0000) Subject: Makefile: added nice variable X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=0ccd609f5519b731e78d83dfdf4df5be44f6ebda;p=senf.git Makefile: added nice variable git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1262 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Makefile b/Makefile index eeb0d80..acbd708 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ #---------------------------------------------------------------------- CONCURRENCY_LEVEL ?= $(shell grep process /proc/cpuinfo | wc -l) +ifdef nice + SCONS_ARGS += CXX='nice -n $(nice) g++' +endif ifdef final SCONS_ARGS += "final="$(final) endif @@ -40,10 +43,8 @@ all_docs all_tests all: #---------------------------------------------------------------------- # remote compile targets #---------------------------------------------------------------------- -JOBS := 1 - all@% all_docs@% all_tests@% build@%: - ssh $* "cd `pwd` && $(MAKE) -j $(JOBS) $(firstword $(subst @, ,$@))" + ssh $* "cd `pwd` && $(MAKE) SCONS_ARGS=\"$(SCONS_ARGS)\" $(firstword $(subst @, ,$@))" #----------------------------------------------------------------------