makefile: add CPUS support to the cs target

This commit is contained in:
Matthew Flatt 2018-09-13 07:42:18 -06:00
parent efd601cb51
commit d9218abc71

View File

@ -235,12 +235,20 @@ BASE_TARGET = plain-minimal-in-place
CS_SETUP_TARGET = plain-in-place-after-base
cs:
if [ "$(CPUS)" = "" ] ; \
then $(MAKE) plain-cs ; \
else $(MAKE) cpus-cs CPUS="$(CPUS)" ; fi
plain-cs:
if [ "$(SCHEME_SRC)" = "" ] ; \
then $(MAKE) scheme-src ; fi
if [ "$(RACKET)" = "" ] ; \
then $(MAKE) racket-then-cs ; \
else $(MAKE) cs-after-racket-with-racket RACKET="$(RACKET)" ; fi
cpus-cs:
$(MAKE) -j $(CPUS) plain-cs JOB_OPTIONS="-j $(CPUS)"
cs-in-place:
$(MAKE) cs