X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5f26a699ff8b694d72c86a4d141270e4d682d105..ae9c0f20fa8c159ec3a9c0ca5836461b817ca0c7:/openwrt/Makefile diff --git a/openwrt/Makefile b/openwrt/Makefile index e935295e6..45a9ba7ff 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -74,13 +74,12 @@ package_install: package_compile toolchain # ############################################################# - # In this section, we need .config include .config.cmd -world: $(DL_DIR) $(BUILD_DIR) configtest target_prepare $(TARGET_DIR) toolchain_install package_install target_install package_index +world: $(DL_DIR) $(BUILD_DIR) configtest toolchain_install package_install target_install package_index -.PHONY: all world clean dirclean distclean image_clean target_clean source target_prepare target_install toolchain_install package_install configtest +.PHONY: all world clean dirclean distclean image_clean target_clean source target_install toolchain_install package_install configtest configtest: -cp .config .config.test @@ -91,9 +90,6 @@ package_index: $(STAGING_DIR)/usr/bin/ipkg-make-index . > Packages \ ) -target_prepare: - $(MAKE) -C target prepare - target_compile: $(MAKE) -C target compile @@ -108,6 +104,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