diff options
| author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-02-19 13:00:30 +0000 |
|---|---|---|
| committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-02-19 13:00:30 +0000 |
| commit | aad0c0841c56f866c73aa819d2af7b5596604fd9 (patch) | |
| tree | 5ff9396a098d631bae3a7d7c70bd4d9fa294a8af /openwrt/Makefile | |
| parent | 2572b0e67f54ccc9b50a9751ce80deb491344fd5 (diff) | |
| download | mtk-20170518-aad0c0841c56f866c73aa819d2af7b5596604fd9.zip mtk-20170518-aad0c0841c56f866c73aa819d2af7b5596604fd9.tar.gz mtk-20170518-aad0c0841c56f866c73aa819d2af7b5596604fd9.tar.bz2 | |
demistifying make *clean targets, fix some clean targets issues
SVN-Revision: 272
Diffstat (limited to 'openwrt/Makefile')
| -rw-r--r-- | openwrt/Makefile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/openwrt/Makefile b/openwrt/Makefile index 17507b9..43ee3dd 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -27,8 +27,7 @@ CONFIG_DEFCONFIG = .defconfig CONFIG = package/config noconfig_targets := menuconfig config oldconfig randconfig \ - defconfig allyesconfig allnoconfig clean distclean \ - release tags + defconfig allyesconfig allnoconfig release tags # Pull in the user's configuration file ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) @@ -127,17 +126,17 @@ source: $(TARGETS_SOURCE) # Cleanup and misc junk # ############################################################# -clean: $(TARGETS_CLEAN) - rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) +clean: + rm -rf $(TARGET_DIR) $(IMAGE).* + $(MAKE) $(DIST)-image-clean dirclean: $(TARGETS_DIRCLEAN) - rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) - -distclean: - rm -rf $(DL_DIR) $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) + rm -rf $(TARGET_DIR) $(IMAGE).* + $(MAKE) $(DIST)-image-clean -cleanall: - rm -rf $(DL_DIR) $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) $(TOOL_BUILD_DIR) +distclean: clean + rm -rf $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) + rm .config* .tmpconfig.h sourceball: rm -rf $(BUILD_DIR) @@ -194,8 +193,8 @@ defconfig: $(CONFIG)/conf # Cleanup and misc junk # ############################################################# -clean: - - $(MAKE) -C $(CONFIG) clean +clean: + @$(MAKE) -C $(CONFIG) clean distclean: clean @@ -204,4 +203,3 @@ endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) .PHONY: dummy subdirs release distclean clean config oldconfig \ menuconfig tags check test depend - |
