summaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/DocBook/Makefile')
-rw-r--r--Documentation/DocBook/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 164c1c76971f..85916f13d330 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -8,12 +8,11 @@
8 8
9DOCBOOKS := z8530book.xml \ 9DOCBOOKS := z8530book.xml \
10 kernel-hacking.xml kernel-locking.xml \ 10 kernel-hacking.xml kernel-locking.xml \
11 writing_usb_driver.xml networking.xml \ 11 networking.xml \
12 kernel-api.xml filesystems.xml lsm.xml kgdb.xml \ 12 filesystems.xml lsm.xml kgdb.xml \
13 gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \ 13 libata.xml mtdnand.xml librs.xml rapidio.xml \
14 genericirq.xml s390-drivers.xml scsi.xml \ 14 s390-drivers.xml scsi.xml \
15 sh.xml w1.xml \ 15 sh.xml w1.xml
16 writing_musb_glue_layer.xml
17 16
18ifeq ($(DOCBOOKS),) 17ifeq ($(DOCBOOKS),)
19 18
@@ -62,11 +61,14 @@ MAN := $(patsubst %.xml, %.9, $(BOOKS))
62mandocs: $(MAN) 61mandocs: $(MAN)
63 find $(obj)/man -name '*.9' | xargs gzip -nf 62 find $(obj)/man -name '*.9' | xargs gzip -nf
64 63
64# Default location for installed man pages
65export INSTALL_MAN_PATH = $(objtree)/usr
66
65installmandocs: mandocs 67installmandocs: mandocs
66 mkdir -p /usr/local/man/man9/ 68 mkdir -p $(INSTALL_MAN_PATH)/man/man9/
67 find $(obj)/man -name '*.9.gz' -printf '%h %f\n' | \ 69 find $(obj)/man -name '*.9.gz' -printf '%h %f\n' | \
68 sort -k 2 -k 1 | uniq -f 1 | sed -e 's: :/:' | \ 70 sort -k 2 -k 1 | uniq -f 1 | sed -e 's: :/:' | \
69 xargs install -m 644 -t /usr/local/man/man9/ 71 xargs install -m 644 -t $(INSTALL_MAN_PATH)/man/man9/
70 72
71# no-op for the DocBook toolchain 73# no-op for the DocBook toolchain
72epubdocs: 74epubdocs:
@@ -238,7 +240,9 @@ dochelp:
238 @echo ' psdocs - Postscript' 240 @echo ' psdocs - Postscript'
239 @echo ' xmldocs - XML DocBook' 241 @echo ' xmldocs - XML DocBook'
240 @echo ' mandocs - man pages' 242 @echo ' mandocs - man pages'
241 @echo ' installmandocs - install man pages generated by mandocs' 243 @echo ' installmandocs - install man pages generated by mandocs to INSTALL_MAN_PATH'; \
244 echo ' (default: $(INSTALL_MAN_PATH))'; \
245 echo ''
242 @echo ' cleandocs - clean all generated DocBook files' 246 @echo ' cleandocs - clean all generated DocBook files'
243 @echo 247 @echo
244 @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml' 248 @echo ' make DOCBOOKS="s1.xml s2.xml" [target] Generate only docs s1.xml s2.xml'