Skip to content

Commit

Permalink
kbuild: docbook: specify KERNELDOC dependency correctly
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
masahir0y authored and michal42 committed Mar 14, 2014
1 parent 6f89b9c commit 100da4c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Documentation/DocBook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 100da4c

Please sign in to comment.