X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Makefile;h=eeb0d80f40abf91c6a791e2c10b4660989e7561f;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=10a82c967ffaaf024fb42450ea24653ecfed0a4f;hpb=64bfdec888eadb3c2c4af30e5bc26554ca6a4f80;p=senf.git diff --git a/Makefile b/Makefile index 10a82c9..eeb0d80 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_tests@% build@%: + ssh $* "cd `pwd` && $(MAKE) -j $(JOBS) $(firstword $(subst @, ,$@))" + + #---------------------------------------------------------------------- # test coverage #----------------------------------------------------------------------