second half of #2420 - don't use the loop macro. Fixes -j13 for me

This commit is contained in:
mrdudz 2024-03-17 17:19:42 +01:00
parent 25967e65b5
commit b993d88339
1 changed files with 14 additions and 12 deletions

View File

@ -12,23 +12,25 @@ endif
WORKDIR = ../testwrk/asm
SUBDIRS = cpudetect opcodes listing val err misc
.PHONY: all continue mostlyclean clean
all: mostlyclean continue
define CALL_template
continue: mostlyclean
@$(MAKE) -C cpudetect all
@$(MAKE) -C opcodes all
@$(MAKE) -C listing all
@$(MAKE) -C val all
@$(MAKE) -C err all
@$(MAKE) -C misc all
continue::
@$(MAKE) -C $1 all
mostlyclean::
@$(MAKE) -C $1 clean
endef
$(foreach subdir,$(SUBDIRS),$(eval $(call CALL_template,$(subdir))))
mostlyclean:
@$(MAKE) -C cpudetect clean
@$(MAKE) -C opcodes clean
@$(MAKE) -C listing clean
@$(MAKE) -C val clean
@$(MAKE) -C err clean
@$(MAKE) -C misc clean
clean: mostlyclean
@$(call RMDIR,$(WORKDIR))