X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/d4acdafcf724057bc9b718170c54b420f46c40b4..5ca8302d76986d4e4a9b5933fee8114792a44b8c:/openwrt/Makefile?ds=inline 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