X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f52d66ff00b24111f87c274d3d7085ef2e1d27b1..9f03dd783ed007d16cdf7515a17d6277b8daeb03:/tools/Makefile?ds=sidebyside diff --git a/tools/Makefile b/tools/Makefile index c8fad2323..eeadde2ed 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -16,7 +16,9 @@ TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS-y)) all: install download: $(TARGETS_DOWNLOAD) -install: $(TARGETS_INSTALL) +install: + $(MAKE) install-targets +install-targets: $(TARGETS_INSTALL) clean: $(TARGETS_CLEAN) squashfs-compile: lzma-install @@ -58,3 +60,8 @@ $(TOOL_BUILD_DIR): @$(MAKE) -C $(patsubst %-clean,%,$@) clean @rm -f $(TOOL_STAMP_DIR)/.tool_$(patsubst %-clean,%,$@)-* +ifeq ($(MAKECMDGOALS),install-targets) +MAKEFLAGS:=$(MAKEFLAGS) -j$(CONFIG_JLEVEL) +else +.NOTPARALLEL: +endif