- add doc-clean target
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Aug 2008 13:47:20 +0000 (13:47 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Aug 2008 13:47:20 +0000 (13:47 -0000)
Makefile
Makefile.help

index 06452df..1db69eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -966,6 +966,12 @@ clean: archclean $(clean-dirs)
                -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \
                -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: rm-dirs  := $(wildcard $(MRPROPER_DIRS))
index f957403..999d029 100644 (file)
@@ -6,6 +6,7 @@ help:
        @echo 'Cleaning:'
        @echo '  clean                  - delete temporary files created by build'
        @echo '  distclean              - delete all non-source files (including .config)'
+       @echo '  doc-clean              - delete all generated documentation'
        @echo
        @echo 'Build:'
        @echo '  all                    - Executable and documentation'