docbook: make cleandocs

Add a 'make cleandocs' target to clean up all generated
DocBook files.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by Randy Dunlap and committed by Sam Ravnborg 2810ae8c 9e5ec861

+8 -3
+8 -3
Documentation/DocBook/Makefile
··· 31 31 32 32 ### 33 33 # The targets that may be used. 34 - PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs 34 + PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs 35 35 36 36 BOOKS := $(addprefix $(obj)/,$(DOCBOOKS)) 37 37 xmldocs: $(BOOKS) ··· 213 213 dochelp: 214 214 @echo ' Linux kernel internal documentation in different formats:' 215 215 @echo ' htmldocs - HTML' 216 - @echo ' installmandocs - install man pages generated by mandocs' 217 - @echo ' mandocs - man pages' 218 216 @echo ' pdfdocs - PDF' 219 217 @echo ' psdocs - Postscript' 220 218 @echo ' xmldocs - XML DocBook' 219 + @echo ' mandocs - man pages' 220 + @echo ' installmandocs - install man pages generated by mandocs' 221 + @echo ' cleandocs - clean all generated DocBook files' 221 222 222 223 ### 223 224 # Temporary files left by various tools ··· 235 234 $(C-procfs-example) 236 235 237 236 clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man 237 + 238 + cleandocs: 239 + $(Q)rm -f $(call objectify, $(clean-files)) 240 + $(Q)rm -rf $(call objectify, $(clean-dirs)) 238 241 239 242 # Declare the contents of the .PHONY variable as phony. We keep that 240 243 # information in a variable se we can use it in if_changed and friends.