summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-26 13:04:32 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-26 13:04:32 +0000
commitfda3a51ec22b77a117bd33ec8695cd9f22dad8b6 (patch)
tree917e78ade65d5d3363f8e1c1f397e79732f7e8c9 /Makefile
parent31a714ef357f84b26128650ad9d8f07dadb040d4 (diff)
"docs" target to generate documentation. Generate docs with asciidoc.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4841 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 99c0a52..95b7905 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,11 @@ endif
ROOT_PREFIX:=
+ASCIIDOC:=asciidoc
+ASCIIDOC_CMD:=$(ASCIIDOC) -n -a toc -a toclevels=4
+
+GENERATED_DOCS:=README.html README.Astribank.html
+
ifneq ($(wildcard .version),)
DAHDIVERSION:=$(shell cat .version)
else
@@ -221,6 +226,7 @@ clean:
ifneq (no,$(HAS_KSRC))
$(KMAKE) clean
endif
+ @rm -f $(GENERATED_DOCS)
$(MAKE) -C drivers/dahdi/firmware clean
distclean: dist-clean
@@ -235,6 +241,14 @@ firmware-download:
test:
./test-script $(DESTDIR)/lib/modules/$(KVERS) dahdi
+docs: $(GENERATED_DOCS)
+
+README.html: README
+ $(ASCIIDOC_CMD) -o $@ $<
+
+README.Astribank.html: drivers/dahdi/xpp/README.Astribank
+ $(ASCIIDOC_CMD) -o $@ $<
+
.PHONY: distclean dist-clean clean all install devices modules stackcheck install-udev update install-modules install-include uninstall-modules firmware-download install-xpp-firm
FORCE: