X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Makefile;h=acbd708458370ae5e93f03962ae78de141325a66;hb=25976ed67c66d30811fa0a01043e50347e9d1e69;hp=532d737a676684ebe95093c189992f4eedb8f7de;hpb=c5ebf1fef99c27a3fdc02a70bff041ac881f4c32;p=senf.git diff --git a/Makefile b/Makefile index 532d737..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 @@ -37,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 #----------------------------------------------------------------------