cleanup (dist)clean logic

This commit is contained in:
"Vladimir N. Oleynik" 2006-01-23 11:24:58 +00:00
parent b70ccd9509
commit 9394b232ef

View File

@ -111,32 +111,32 @@ _all: all
help: help:
@echo 'Cleaning:' @echo 'Cleaning:'
@echo ' clean - delete temporary files created by build' @echo ' clean - delete temporary files created by build'
@echo ' distclean - delete all non-source files (including .config)' @echo ' distclean - delete all non-source files (including .config)'
@echo @echo
@echo 'Build:' @echo 'Build:'
@echo ' all - Executable and documentation' @echo ' all - Executable and documentation'
@echo ' busybox - the swiss-army executable' @echo ' busybox - the swiss-army executable'
@echo ' doc - docs/BusyBox.{txt,html,1}' @echo ' doc - docs/BusyBox.{txt,html,1}'
@echo @echo
@echo 'Configuration:' @echo 'Configuration:'
@echo ' allnoconfig - disable all symbols in .config' @echo ' allnoconfig - disable all symbols in .config'
@echo ' allyesconfig - enable (almost) all symbols in .config' @echo ' allyesconfig - enable (almost) all symbols in .config'
@echo ' allbareconfig - enable all basics without any features' @echo ' allbareconfig - enable all basics without any features'
@echo ' config - text based configurator (of last resort)' @echo ' config - text based configurator (of last resort)'
@echo ' defconfig - set .config to defaults' @echo ' defconfig - set .config to defaults'
@echo ' menuconfig - interactive curses-based configurator' @echo ' menuconfig - interactive curses-based configurator'
@echo ' oldconfig - resolve any unresolved symbols in .config' @echo ' oldconfig - resolve any unresolved symbols in .config'
@echo @echo
@echo 'Installation:' @echo 'Installation:'
@echo ' install - install busybox into $prefix' @echo ' install - install busybox into $prefix'
@echo ' uninstall' @echo ' uninstall'
@echo @echo
@echo 'Development:' @echo 'Development:'
@echo ' check - run the test suite for all applets' @echo ' check - run the test suite for all applets'
@echo ' randconfig - generate a random configuration' @echo ' randconfig - generate a random configuration'
@echo ' release - create a distribution tarball' @echo ' release - create a distribution tarball'
@echo ' sizes - show size of all enabled busybox symbols' @echo ' sizes - show size of all enabled busybox symbols'
@echo @echo
@ -222,7 +222,7 @@ LIBBUSYBOX_SONAME:=$(LD_LIBBUSYBOX).$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL
DO_INSTALL_LIBS:=$(LD_LIBBUSYBOX) \ DO_INSTALL_LIBS:=$(LD_LIBBUSYBOX) \
$(LD_LIBBUSYBOX).$(MAJOR_VERSION) \ $(LD_LIBBUSYBOX).$(MAJOR_VERSION) \
$(LD_LIBBUSYBOX).$(MAJOR_VERSION).$(MINOR_VERSION) $(LD_LIBBUSYBOX).$(MAJOR_VERSION).$(MINOR_VERSION)
ifeq ($(CONFIG_BUILD_AT_ONCE),y) ifeq ($(CONFIG_BUILD_AT_ONCE),y)
# Which parts of the internal libs are requested? # Which parts of the internal libs are requested?
# Per default we only want what was actually selected. # Per default we only want what was actually selected.
@ -426,7 +426,7 @@ clean:
docs/busybox.pod docs/busybox.net/busybox.html \ docs/busybox.pod docs/busybox.net/busybox.html \
docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \ docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \
docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \ docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
docs/busybox.net/BusyBox.html busybox.links include/_usage.h \ docs/busybox.net/BusyBox.html busybox.links \
$(DO_INSTALL_LIBS) $(LIBBUSYBOX_SONAME) \ $(DO_INSTALL_LIBS) $(LIBBUSYBOX_SONAME) \
.config.old busybox .config.old busybox
- rm -rf _install testsuite/links - rm -rf _install testsuite/links
@ -437,7 +437,7 @@ clean:
distclean: clean distclean: clean
- $(RM_F) scripts/bb_mkdep - $(RM_F) scripts/bb_mkdep
- rm -rf include/config include/config.h include/bb_config.h include/bbconfigopts.h - rm -rf include/config $(DEP_INCLUDES)
- find . -name .depend -exec $(RM_F) {} \; - find . -name .depend -exec $(RM_F) {} \;
$(RM_F) .config .config.old .config.cmd $(RM_F) .config .config.old .config.cmd