X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Makefile;h=acbd708458370ae5e93f03962ae78de141325a66;hb=25976ed67c66d30811fa0a01043e50347e9d1e69;hp=f423bb548a067cae5bbff75536e1fc66b2fc043c;hpb=36acc002a205859e1663f609b872aeeb292d7011;p=senf.git diff --git a/Makefile b/Makefile index f423bb5..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_test@% build@%: - ssh $* "cd `pwd` && $(MAKE) -j $(JOBS) $(firstword $(subst @, ,$@))" +all@% all_docs@% all_tests@% build@%: + ssh $* "cd `pwd` && $(MAKE) SCONS_ARGS=\"$(SCONS_ARGS)\" $(firstword $(subst @, ,$@))" #----------------------------------------------------------------------