X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=Makefile;h=43ee3ddba5012fc1a618c90b72ee1cbf093716b6;hb=8cf9356a03fdf5e0f89e09ea51a1e19914312af3;hp=17507b9f8eaf7807628b590dbeb8d1b97f3abffd;hpb=b1fea1a5d2a0e49411bf9894191b6db5d4c745bf;p=openwrt-10.03%2F.git diff --git a/Makefile b/Makefile index 17507b9f8..43ee3ddba 100644 --- a/Makefile +++ b/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 -