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)),)
# Cleanup and misc junk
#
#############################################################
-clean: $(TARGETS_CLEAN)
- rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE)
+clean:
+ rm -rf $(TARGET_DIR) $(IMAGE).*
+ $(MAKE) openwrt-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) openwrt-image-dirclean
-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)
# Cleanup and misc junk
#
#############################################################
-clean:
- - $(MAKE) -C $(CONFIG) clean
+clean:
+ @$(MAKE) -C $(CONFIG) clean
distclean: clean
.PHONY: dummy subdirs release distclean clean config oldconfig \
menuconfig tags check test depend
-