X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Makefile;h=acbd708458370ae5e93f03962ae78de141325a66;hb=0ccd609f5519b731e78d83dfdf4df5be44f6ebda;hp=eeb0d80f40abf91c6a791e2c10b4660989e7561f;hpb=1e7062482bb6d99a0c36b641069c73a4a93da9cc;p=senf.git 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 @, ,$@))" #----------------------------------------------------------------------