X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d4acdafcf724057bc9b718170c54b420f46c40b4..dc97347cdf6a1987c40d6285e5b1674dddb9e252:/openwrt/Makefile diff --git a/openwrt/Makefile b/openwrt/Makefile index cd9423314..1b8d968a0 100644 --- a/openwrt/Makefile +++ b/openwrt/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