added PacketType typedef to PPI-writer interface
[senf.git] / Makefile
index 10a82c9..f423bb5 100644 (file)
--- 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
 #----------------------------------------------------------------------