diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-01-20 05:10:11 (GMT) |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-03-14 17:06:47 (GMT) |
commit | 100da4c0150c97ce34d4d3b38bf2f5449b05ae4f (patch) | |
tree | feff16c98df6f21c978316b42f8dfebc415ea623 /Documentation/DocBook/Makefile | |
parent | 6f89b9c1d6b29eaa600ac4a8ac1314b0d06f15e3 (diff) | |
download | linux-100da4c0150c97ce34d4d3b38bf2f5449b05ae4f.tar.xz |
kbuild: docbook: specify KERNELDOC dependency correctly
It is not a good idea to describe
%.xml: %.tmpl FORCE
...
and
$(BOOKS): $(KERNELDOC)
separately. This cannot detect missing template files.
For example, add something to DOCBOOKS variable:
DOCBOOKS += foobar.xml
and run
make xmldocs
It will succeed even if Documention/DocBook/foobar.tmpl
does not exist.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Documentation/DocBook/Makefile')
-rw-r--r-- | Documentation/DocBook/Makefile | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile index 105ba8e..89d9982 100644 --- a/Documentation/DocBook/Makefile +++ b/Documentation/DocBook/Makefile @@ -88,13 +88,9 @@ define rule_docproc ) > $(dir $@).$(notdir $@).cmd endef -%.xml: %.tmpl FORCE +%.xml: %.tmpl $(KERNELDOC) $(DOCPROC) FORCE $(call if_changed_rule,docproc) -### -# Changes in kernel-doc force a rebuild of all documentation -$(BOOKS): $(KERNELDOC) - # Tell kbuild to always build the programs always := $(hostprogs-y) |