- add doc-clean target

This commit is contained in:
Bernhard Reutner-Fischer 2008-08-21 13:47:20 +00:00
parent 6887e77c32
commit 8eeaa747c8
2 changed files with 7 additions and 0 deletions

View File

@ -966,6 +966,12 @@ clean: archclean $(clean-dirs)
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \
-type f -print | xargs rm -f -type f -print | xargs rm -f
PHONY += doc-clean
doc-clean: rm-files := docs/busybox.pod \
docs/BusyBox.html docs/BusyBox.1 docs/BusyBox.txt
doc-clean:
$(call cmd,rmfiles)
# mrproper - Delete all generated files, including .config # mrproper - Delete all generated files, including .config
# #
mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS)) mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS))

View File

@ -6,6 +6,7 @@ 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 ' doc-clean - delete all generated documentation'
@echo @echo
@echo 'Build:' @echo 'Build:'
@echo ' all - Executable and documentation' @echo ' all - Executable and documentation'