diff options
Diffstat (limited to 'Documentation/DocBook/Makefile')
-rw-r--r-- | Documentation/DocBook/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile index a3a83d38f96..b1eb661e630 100644 --- a/Documentation/DocBook/Makefile +++ b/Documentation/DocBook/Makefile | |||
@@ -31,7 +31,7 @@ PS_METHOD = $(prefer-db2x) | |||
31 | 31 | ||
32 | ### | 32 | ### |
33 | # The targets that may be used. | 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 | BOOKS := $(addprefix $(obj)/,$(DOCBOOKS)) | 36 | BOOKS := $(addprefix $(obj)/,$(DOCBOOKS)) |
37 | xmldocs: $(BOOKS) | 37 | xmldocs: $(BOOKS) |
@@ -143,7 +143,8 @@ quiet_cmd_db2pdf = PDF $@ | |||
143 | $(call cmd,db2pdf) | 143 | $(call cmd,db2pdf) |
144 | 144 | ||
145 | 145 | ||
146 | main_idx = Documentation/DocBook/index.html | 146 | index = index.html |
147 | main_idx = Documentation/DocBook/$(index) | ||
147 | build_main_index = rm -rf $(main_idx) && \ | 148 | build_main_index = rm -rf $(main_idx) && \ |
148 | echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \ | 149 | echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \ |
149 | echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \ | 150 | echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \ |
@@ -213,11 +214,12 @@ silent_gen_xml = : | |||
213 | dochelp: | 214 | dochelp: |
214 | @echo ' Linux kernel internal documentation in different formats:' | 215 | @echo ' Linux kernel internal documentation in different formats:' |
215 | @echo ' htmldocs - HTML' | 216 | @echo ' htmldocs - HTML' |
216 | @echo ' installmandocs - install man pages generated by mandocs' | ||
217 | @echo ' mandocs - man pages' | ||
218 | @echo ' pdfdocs - PDF' | 217 | @echo ' pdfdocs - PDF' |
219 | @echo ' psdocs - Postscript' | 218 | @echo ' psdocs - Postscript' |
220 | @echo ' xmldocs - XML DocBook' | 219 | @echo ' xmldocs - XML DocBook' |
220 | @echo ' mandocs - man pages' | ||
221 | @echo ' installmandocs - install man pages generated by mandocs' | ||
222 | @echo ' cleandocs - clean all generated DocBook files' | ||
221 | 223 | ||
222 | ### | 224 | ### |
223 | # Temporary files left by various tools | 225 | # Temporary files left by various tools |
@@ -231,10 +233,14 @@ clean-files := $(DOCBOOKS) \ | |||
231 | $(patsubst %.xml, %.pdf, $(DOCBOOKS)) \ | 233 | $(patsubst %.xml, %.pdf, $(DOCBOOKS)) \ |
232 | $(patsubst %.xml, %.html, $(DOCBOOKS)) \ | 234 | $(patsubst %.xml, %.html, $(DOCBOOKS)) \ |
233 | $(patsubst %.xml, %.9, $(DOCBOOKS)) \ | 235 | $(patsubst %.xml, %.9, $(DOCBOOKS)) \ |
234 | $(C-procfs-example) | 236 | $(C-procfs-example) $(index) |
235 | 237 | ||
236 | clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man | 238 | clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man |
237 | 239 | ||
240 | cleandocs: | ||
241 | $(Q)rm -f $(call objectify, $(clean-files)) | ||
242 | $(Q)rm -rf $(call objectify, $(clean-dirs)) | ||
243 | |||
238 | # Declare the contents of the .PHONY variable as phony. We keep that | 244 | # Declare the contents of the .PHONY variable as phony. We keep that |
239 | # information in a variable se we can use it in if_changed and friends. | 245 | # information in a variable se we can use it in if_changed and friends. |
240 | 246 | ||