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