mk: Allow parallel execution

* lisp/Makefile (.NOTPARALLEL): Do not suppress parallel execution.
(all compile compile-dirty):
(compile-single):
(compile-native):
(compile-source):
(compile-slint1):
(compile-slint2): Explicitly declare prerequisites that must be run
sequentially.
* mk/targets.mk (.NOTPARALLEL): Do not suppress parallel execution.
(uncompiled):
(update update2):
(repro): Explicitly declare prerequisites that must be run
sequentially.
This commit is contained in:
Ihor Radchenko 2024-02-09 17:15:53 +01:00
parent ecb5b605d7
commit 71fbe92c2e
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
2 changed files with 9 additions and 11 deletions

View File

@ -1,4 +1,3 @@
.NOTPARALLEL: # always run this make serially
.SUFFIXES: # we don't need default suffix rules
ifeq ($(MAKELEVEL), 0)
$(error This make needs to be started as a sub-make from the toplevel directory.)
@ -20,7 +19,7 @@ _ORGCM_ := dirall single native source slint1 slint2
install clean cleanauto cleanall cleanelc clean-install
# do not clean here, done in toplevel make
all compile compile-dirty:: autoloads
all compile compile-dirty:: | autoloads
ifeq ($(filter-out $(_ORGCM_),$(ORGCM)),)
$(MAKE) compile-$(ORGCM)
else
@ -28,11 +27,11 @@ else
endif
compile-dirall: dirall
compile-single: single $(LISPC)
compile-native: native $(LISPN)
compile-source: source dirall
compile-slint1: dirall slint1
compile-slint2: source dirall slint1
compile-single: $(LISPC) | single
compile-native: $(LISPN) | native
compile-source: | source dirall
compile-slint1: | dirall slint1
compile-slint2: | source dirall slint1
# internal
dirall:

View File

@ -1,5 +1,4 @@
.EXPORT_ALL_VARIABLES:
.NOTPARALLEL: .PHONY
# Additional distribution files
DISTFILES_extra= Makefile etc
@ -67,9 +66,9 @@ config config-test config-exe config-all config-version::
@echo ""
oldorg: compile info # what the old makefile did when no target was specified
uncompiled: cleanlisp autoloads # for developing
uncompiled: | cleanlisp autoloads # for developing
refcard: card
update update2:: up0 all
update update2:: | up0 all
single: ORGCM=single
single: compile
@ -129,7 +128,7 @@ $(INSTSUB):
autoloads: lisp
$(MAKE) -C $< $@
repro: cleanall autoloads
repro: | cleanall autoloads
-@$(REPRO) &
cleandirs: