Made the *docs targets work after the restructuring of the kbuild files.
Fix cleaning up after make htmldocs, there are some directories
that needs to be deleted in that case.
$(patsubst %.fig,%.png, $(IMG-parportbook)) \
$(C-procfs-example)
-ifneq ($(wildcard $(BOOKS)),)
-clean-rule := rm -rf $(wildcard $(BOOKS))
+ifneq ($(wildcard $(patsubst %.html,%,$(HTML))),)
+clean-rule := rm -rf $(wildcard $(patsubst %.html,%,$(HTML)))
endif
-
-include $(TOPDIR)/Rules.make
# Documentation targets
# ---------------------------------------------------------------------------
sgmldocs psdocs pdfdocs htmldocs: scripts
- $(Q)$(MAKE) -f Documentation/DocBook/Makefile $@
+ $(Q)$(MAKE) -f scripts/Makefile.build obj=Documentation/DocBook $@
# Scripts to check various things for consistency
# ---------------------------------------------------------------------------