Changeset 727 for trunk


Ignore:
Timestamp:
Mar 3, 2016, 8:39:49 PM (5 years ago)
Author:
amain
Message:

Make clean improvements

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r724 r727  
    7272
    7373ifeq ($(CONFIG_DEBWRT_FIRMWARE),y)
    74 clean: openwrt/clean debian/clean config/clean plugins/clean
     74clean: openwrt/clean debian/clean plugins/clean
    7575else
    7676clean: debian/clean config/clean plugins/clean
    7777endif
     78        rm -rf $(BIN_DIR)
     79
     80ifeq ($(CONFIG_DEBWRT_FIRMWARE),y)
     81dirclean: openwrt/dirclean debian/clean config/clean plugins/clean
     82else
     83dirclean: debian/clean config/clean plugins/clean
     84endif
     85        rm -rf $(BIN_DIR)
    7886        rm -f .config
    7987
  • trunk/openwrt/openwrt.mk

    r724 r727  
    186186
    187187# deletes contents of the directories /bin and /build_dir. make clean does not remove the toolchain, it also avoids cleaning architectures/targets other than the one you have selected in your .config
    188 openwrt/clean:
     188openwrt/clean: openwrt/deliver/clean
    189189        -$(SCRIPT_CLEAN_EXEC) $(MAKE) -C $(OPENWRT_BUILD_DIR) clean V=$(V)
     190        rm -f openwrt/all
     191        rm -f openwrt/build
     192        rm -f openwrt/deliver
     193        rm -f openwrt/merge-config
    190194
    191195# deletes contents of the directories /bin and /build_dir and additionally /staging_dir and /toolchain (=the cross-compile tools) and /logs. 'Dirclean' is your basic "Full clean" operation.
    192 openwrt/dirclean:
     196openwrt/dirclean: openwrt/deliver/clean
    193197        -$(SCRIPT_CLEAN_EXEC) $(MAKE) -C $(OPENWRT_BUILD_DIR) dirclean V=$(V)
     198        rm -f openwrt/all
     199        rm -f openwrt/build
     200        rm -f openwrt/deliver
     201        rm -f openwrt/merge-config
    194202
    195203# nukes everything you have compiled or configured and also deletes all downloaded feeds contents and package sources.
    196 openwrt/distclean:
     204openwrt/distclean: openwrt/deliver/clean
    197205        -$(SCRIPT_CLEAN_EXEC) $(MAKE) -C $(OPENWRT_BUILD_DIR) distclean V=$(V)
    198 
    199 openwrt/full-clean:
     206        rm -f openwrt/all
     207        rm -f openwrt/build
     208        rm -f openwrt/deliver
     209        rm -f openwrt/merge-config
     210
     211openwrt/full-clean: openwrt/deliver/clean
    200212        rm -rf $(OPENWRT_BUILD_DIR)
     213        rm -f openwrt/all
     214        rm -f openwrt/build
     215        rm -f openwrt/deliver
    201216        rm -f openwrt/checkout
    202217        rm -f openwrt/patch
    203218        rm -f openwrt/files-copy
     219        rm -f openwrt/download-link
     220        rm -f openwrt/prepare
     221        rm -f openwrt/merge-config
    204222
    205223.PHONY: openwrt/patch/force \
Note: See TracChangeset for help on using the changeset viewer.