Skip to content
Snippets Groups Projects
Commit f277cb58 authored by tho's avatar tho
Browse files

Makefile: added nice variable

parent 2a79aeba
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
#---------------------------------------------------------------------- #----------------------------------------------------------------------
CONCURRENCY_LEVEL ?= $(shell grep process /proc/cpuinfo | wc -l) CONCURRENCY_LEVEL ?= $(shell grep process /proc/cpuinfo | wc -l)
ifdef nice
SCONS_ARGS += CXX='nice -n $(nice) g++'
endif
ifdef final ifdef final
SCONS_ARGS += "final="$(final) SCONS_ARGS += "final="$(final)
endif endif
...@@ -40,10 +43,8 @@ all_docs all_tests all: ...@@ -40,10 +43,8 @@ all_docs all_tests all:
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# remote compile targets # remote compile targets
#---------------------------------------------------------------------- #----------------------------------------------------------------------
JOBS := 1
all@% all_docs@% all_tests@% build@%: all@% all_docs@% all_tests@% build@%:
ssh $* "cd `pwd` && $(MAKE) -j $(JOBS) $(firstword $(subst @, ,$@))" ssh $* "cd `pwd` && $(MAKE) SCONS_ARGS=\"$(SCONS_ARGS)\" $(firstword $(subst @, ,$@))"
#---------------------------------------------------------------------- #----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment