Skip to content

Commit

Permalink
build: enable parallel build for root Makefile by passing PARALLEL=-j
Browse files Browse the repository at this point in the history
eg.

make TOOLCHAIN=nuclei_gnu SILENT=1 PARALLEL=-j buildall -k

Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Oct 31, 2023
1 parent 58b8374 commit b7d44f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
PROGRAM :=baremetal/helloworld

PARALLEL ?=

.PHONY: __help ctags cleanall buildall tags
__help:
@echo "Help about Build/Run/Debug/Clean Nuclei SDK Application"
Expand Down Expand Up @@ -54,7 +56,8 @@ $(CLEAN_DIRS_RULES):
make -C $(patsubst __CLEAN__%, %, $@) clean

$(BUILD_DIRS_RULES):
make -C $(patsubst __BUILD__%, %, $@) clean all
make -C $(patsubst __BUILD__%, %, $@) clean
make -C $(patsubst __BUILD__%, %, $@) $(PARALLEL) all

$(VALID_SDK_RULES):
make -C $(VALID_PROGRAM) $@
Expand Down

0 comments on commit b7d44f6

Please sign in to comment.