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 WORKDIR = ../testwrk/asm
SUBDIRS = cpudetect opcodes listing val err misc
.PHONY: all continue mostlyclean clean .PHONY: all continue mostlyclean clean
all: mostlyclean continue 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:: mostlyclean:
@$(MAKE) -C $1 all @$(MAKE) -C cpudetect clean
@$(MAKE) -C opcodes clean
mostlyclean:: @$(MAKE) -C listing clean
@$(MAKE) -C $1 clean @$(MAKE) -C val clean
@$(MAKE) -C err clean
endef @$(MAKE) -C misc clean
$(foreach subdir,$(SUBDIRS),$(eval $(call CALL_template,$(subdir))))
clean: mostlyclean clean: mostlyclean
@$(call RMDIR,$(WORKDIR)) @$(call RMDIR,$(WORKDIR))