Skip to content

Commit

Permalink
kbuild: docbook: include cmd files more simply
Browse files Browse the repository at this point in the history
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Masahiro Yamada authored and Michal Marek committed Mar 14, 2014
1 parent bfdfaea commit 6f89b9c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Documentation/DocBook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ PS_METHOD = $(prefer-db2x)
# The targets that may be used.
PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs

targets += $(DOCBOOKS)
BOOKS := $(addprefix $(obj)/,$(DOCBOOKS))
xmldocs: $(BOOKS)
sgmldocs: xmldocs
Expand Down Expand Up @@ -90,14 +91,6 @@ endef
%.xml: %.tmpl FORCE
$(call if_changed_rule,docproc)

###
#Read in all saved dependency files
cmd_files := $(wildcard $(foreach f,$(BOOKS),$(dir $(f)).$(notdir $(f)).cmd))

ifneq ($(cmd_files),)
include $(cmd_files)
endif

###
# Changes in kernel-doc force a rebuild of all documentation
$(BOOKS): $(KERNELDOC)
Expand Down

0 comments on commit 6f89b9c

Please sign in to comment.