Changeset 4ea6595 in freewrt


Ignore:
Timestamp:
Jun 11, 2006, 7:22:50 PM (20 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
1afde0f
Parents:
141fe0f
Message:

change target distclean to also remove the download area
(distclean = "as clean as if we were making a distfile")

new target cleandir removes everything removed by distclean
except the configuration and downloaded distfiles
(cleandir = clean + toolchain directories)

removed target dirclean, replaced by ordinary clean target
(clean = clean packages, bindir, builddir)

ok wbx@

git-svn-id: svn://www.freewrt.org/trunk/freewrt@46 afb5a338-a214-0410-bd46-81f09a774fd1

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r141fe0f r4ea6595  
    5050        ${GMAKE_INV} config
    5151
    52 dirclean: prereq
    53         ${GMAKE_INV} dirclean
     52cleandir: prereq
     53        ${GMAKE_INV} cleandir
     54        -rm -rf lbin
     55        -rm -f prereq
    5456
    5557distclean: prereq
  • build.mk

    r141fe0f r4ea6595  
    4747
    4848.NOTPARALLEL:
    49 .PHONY: all world clean dirclean distclean image_clean target_clean source configtest
     49.PHONY: all world clean cleandir distclean image_clean target_clean source configtest
    5050
    5151#############################################################
     
    104104        rm -rf $(BIN_DIR)
    105105
    106 clean: dirclean
    107 
    108 dirclean:
    109         @$(TRACE) dirclean
     106clean:
     107        @$(TRACE) clean
    110108        @$(MAKE) -C $(CONFIG) clean
    111109        rm -rf $(BUILD_DIR) $(BIN_DIR)
    112110
    113 distclean: dirclean
     111cleandir:
     112        @$(TRACE) cleandir
     113        @$(MAKE) -C $(CONFIG) clean
     114        rm -rf $(BUILD_DIR) $(BIN_DIR)
     115        rm -rf $(STAMP_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR)
     116        rm -f .tmpconfig.h
     117
     118distclean:
     119        @$(TRACE) distclean
     120        @$(MAKE) -C $(CONFIG) clean
     121        rm -rf $(BUILD_DIR) $(BIN_DIR) $(DL_DIR)
    114122        rm -rf $(STAMP_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR)
    115123        rm -f .config* .tmpconfig.h
Note: See TracChangeset for help on using the changeset viewer.