[svn-commits] tzafrir: linux/trunk r4841 - /linux/trunk/Makefile

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 26 08:04:33 CDT 2008


Author: tzafrir
Date: Tue Aug 26 08:04:32 2008
New Revision: 4841

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4841
Log:
"docs" target to generate documentation. Generate docs with asciidoc.

Modified:
    linux/trunk/Makefile

Modified: linux/trunk/Makefile
URL: http://svn.digium.com/view/dahdi/linux/trunk/Makefile?view=diff&rev=4841&r1=4840&r2=4841
==============================================================================
--- linux/trunk/Makefile (original)
+++ linux/trunk/Makefile Tue Aug 26 08:04:32 2008
@@ -66,6 +66,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)
@@ -221,6 +226,7 @@
 ifneq (no,$(HAS_KSRC))
 	$(KMAKE) clean
 endif
+	@rm -f $(GENERATED_DOCS)
 	$(MAKE) -C drivers/dahdi/firmware clean
 
 distclean: dist-clean
@@ -235,6 +241,14 @@
 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:




More information about the svn-commits mailing list