Type 'make htmldoc' to get doc/*.html
Signed-off-by: Daniel Mack <daniel@zonque.org>
tags
tools/kdbus-monitor
test/kdbus-test
-doc/html
-doc/man
+doc/*.html
+doc/*.7
KERNELDIR ?= /lib/modules/$(KERNELVER)/build
PWD := $(shell pwd)
-all: module tools test
+all: module tools test doc
tools::
$(MAKE) -C tools KERNELDIR=$(realpath $(KERNELDIR)) KBUILD_MODNAME=kdbus$(EXT)
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers $(hostprogs-y)
+ $(MAKE) -C doc clean
$(MAKE) -C test clean
check:
mandoc:
$(MAKE) -C doc mandoc
-doc: mandoc
+htmldoc:
+ $(MAKE) -C doc htmldoc
+
+doc: mandoc htmldoc
kerneldoc_check:
$(KERNELDIR)/scripts/kernel-doc *.c kdbus.h >/dev/null | grep "^Warning"
kdbus.pool.xml
manpages=$(docs:.xml=.7)
+htmlfiles=$(docs:.xml=.html)
%.7: %.xml
xmlto man -m stylesheet.xsl -o . $<
+%.html: %.xml
+ xmlto html-nochunks -m stylesheet.xsl -o . $<
+
mandoc: $(manpages)
+htmldoc: $(htmlfiles)
+
+clean::
+ rm -rf *.7 *.html *.proc manpages.*