X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Makefile;h=acbd708458370ae5e93f03962ae78de141325a66;hb=25976ed67c66d30811fa0a01043e50347e9d1e69;hp=10a82c967ffaaf024fb42450ea24653ecfed0a4f;hpb=64bfdec888eadb3c2c4af30e5bc26554ca6a4f80;p=senf.git diff --git a/Makefile b/Makefile index 10a82c9..acbd708 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ #---------------------------------------------------------------------- # Some SCONS shortcuts #---------------------------------------------------------------------- +CONCURRENCY_LEVEL ?= $(shell grep process /proc/cpuinfo | wc -l) -CONCURRENCY_LEVEL ?= 2 - +ifdef nice + SCONS_ARGS += CXX='nice -n $(nice) g++' +endif ifdef final SCONS_ARGS += "final="$(final) endif @@ -38,7 +40,13 @@ all_docs all_tests all: %/build: $(SCONS) $* +#---------------------------------------------------------------------- +# remote compile targets +#---------------------------------------------------------------------- +all@% all_docs@% all_tests@% build@%: + ssh $* "cd `pwd` && $(MAKE) SCONS_ARGS=\"$(SCONS_ARGS)\" $(firstword $(subst @, ,$@))" + #---------------------------------------------------------------------- # test coverage #----------------------------------------------------------------------