X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/08479c3ef6123d8b8156fd8e5e9c1763216e0503..d847a1ac75f5abd93f377f429d6e26f1106a95ac:/Makefile diff --git a/Makefile b/Makefile index cd9423314..1b8d968a0 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,6 @@ package_install: package_compile toolchain # ############################################################# - # In this section, we need .config include .config.cmd @@ -108,6 +107,16 @@ $(BUILD_DIR): source: $(TARGETS_SOURCE) + +package/%: + $(MAKE) -C package $(patsubst package/%,%,$@) + +target/%: + $(MAKE) -C target $(patsubst target/%,%,$@) + +toolchain/%: + $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@) + ############################################################# # # Cleanup and misc junk @@ -120,6 +129,7 @@ image_clean: target_clean: image_clean rm -rf $(TARGET_DIR) + rm -rf $(BUILD_DIR)/linux-*/root clean: target_clean @$(MAKE) -C $(CONFIG) clean