X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Makefile;h=f423bb548a067cae5bbff75536e1fc66b2fc043c;hb=6927c87144ca23845065e3c23e37c75f5f059cf3;hp=10a82c967ffaaf024fb42450ea24653ecfed0a4f;hpb=64bfdec888eadb3c2c4af30e5bc26554ca6a4f80;p=senf.git diff --git a/Makefile b/Makefile index 10a82c9..f423bb5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ #---------------------------------------------------------------------- # Some SCONS shortcuts #---------------------------------------------------------------------- - -CONCURRENCY_LEVEL ?= 2 +CONCURRENCY_LEVEL ?= $(shell grep process /proc/cpuinfo | wc -l) ifdef final SCONS_ARGS += "final="$(final) @@ -38,7 +37,15 @@ all_docs all_tests all: %/build: $(SCONS) $* +#---------------------------------------------------------------------- +# remote compile targets +#---------------------------------------------------------------------- +JOBS := 1 +all@% all_docs@% all_test@% build@%: + ssh $* "cd `pwd` && $(MAKE) -j $(JOBS) $(firstword $(subst @, ,$@))" + + #---------------------------------------------------------------------- # test coverage #----------------------------------------------------------------------