diff options
| -rw-r--r-- | Documentation/DocBook/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile index 89d9982ee667..c19ebeaf280b 100644 --- a/Documentation/DocBook/Makefile +++ b/Documentation/DocBook/Makefile | |||
| @@ -16,7 +16,7 @@ DOCBOOKS := z8530book.xml device-drivers.xml \ | |||
| 16 | alsa-driver-api.xml writing-an-alsa-driver.xml \ | 16 | alsa-driver-api.xml writing-an-alsa-driver.xml \ |
| 17 | tracepoint.xml drm.xml media_api.xml | 17 | tracepoint.xml drm.xml media_api.xml |
| 18 | 18 | ||
| 19 | include $(srctree)/Documentation/DocBook/media/Makefile | 19 | include $(src)/media/Makefile |
| 20 | 20 | ||
| 21 | ### | 21 | ### |
| 22 | # The build process is as follows (targets): | 22 | # The build process is as follows (targets): |
| @@ -59,14 +59,14 @@ mandocs: $(MAN) | |||
| 59 | 59 | ||
| 60 | installmandocs: mandocs | 60 | installmandocs: mandocs |
| 61 | mkdir -p /usr/local/man/man9/ | 61 | mkdir -p /usr/local/man/man9/ |
| 62 | install Documentation/DocBook/man/*.9.gz /usr/local/man/man9/ | 62 | install $(obj)/man/*.9.gz /usr/local/man/man9/ |
| 63 | 63 | ||
| 64 | ### | 64 | ### |
| 65 | #External programs used | 65 | #External programs used |
| 66 | KERNELDOC = $(srctree)/scripts/kernel-doc | 66 | KERNELDOC = $(srctree)/scripts/kernel-doc |
| 67 | DOCPROC = $(objtree)/scripts/docproc | 67 | DOCPROC = $(objtree)/scripts/docproc |
| 68 | 68 | ||
| 69 | XMLTOFLAGS = -m $(srctree)/Documentation/DocBook/stylesheet.xsl | 69 | XMLTOFLAGS = -m $(srctree)/$(src)/stylesheet.xsl |
| 70 | XMLTOFLAGS += --skip-validation | 70 | XMLTOFLAGS += --skip-validation |
| 71 | 71 | ||
| 72 | ### | 72 | ### |
| @@ -128,7 +128,7 @@ quiet_cmd_db2pdf = PDF $@ | |||
| 128 | 128 | ||
| 129 | 129 | ||
| 130 | index = index.html | 130 | index = index.html |
| 131 | main_idx = Documentation/DocBook/$(index) | 131 | main_idx = $(obj)/$(index) |
| 132 | build_main_index = rm -rf $(main_idx); \ | 132 | build_main_index = rm -rf $(main_idx); \ |
| 133 | echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \ | 133 | echo '<h1>Linux Kernel HTML Documentation</h1>' >> $(main_idx) && \ |
| 134 | echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \ | 134 | echo '<h2>Kernel Version: $(KERNELVERSION)</h2>' >> $(main_idx) && \ |
| @@ -137,7 +137,7 @@ build_main_index = rm -rf $(main_idx); \ | |||
| 137 | quiet_cmd_db2html = HTML $@ | 137 | quiet_cmd_db2html = HTML $@ |
| 138 | cmd_db2html = xmlto html $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \ | 138 | cmd_db2html = xmlto html $(XMLTOFLAGS) -o $(patsubst %.html,%,$@) $< && \ |
| 139 | echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/index.html"> \ | 139 | echo '<a HREF="$(patsubst %.html,%,$(notdir $@))/index.html"> \ |
| 140 | $(patsubst %.html,%,$(notdir $@))</a><p>' > $@ | 140 | $(patsubst %.html,%,$(notdir $@))</a><p>' > $@ |
| 141 | 141 | ||
| 142 | %.html: %.xml | 142 | %.html: %.xml |
| 143 | @(which xmlto > /dev/null 2>&1) || \ | 143 | @(which xmlto > /dev/null 2>&1) || \ |
