[icinga-checkins] icinga.org: icinga2/master: Documentation: implement make target for asciidoc generation

git at icinga.org git at icinga.org
Mon Feb 4 18:35:34 CET 2013


Module: icinga2
Branch: master
Commit: dbf6bccea391ca460a087e745ccda6f51e242ae9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=dbf6bccea391ca460a087e745ccda6f51e242ae9

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Mon Feb  4 18:33:35 2013 +0100

Documentation: implement make target for asciidoc generation

similar to 1.x, 'make create-docs'

fixes #3230

---

 Makefile.am      |    5 +++++
 configure.ac     |    1 +
 docs/Makefile.am |    7 +++++++
 3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 2c23f0c..6252316 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,3 +79,8 @@ dist-hook: icinga-version.stamp
 		$(SED) -e 's|^#undef GIT_IS_DIST.*|#define GIT_IS_DIST 1|' \
 			"icinga-version.h" > "$(distdir)/icinga-version.h"; \
 	fi
+
+SRC_DOCS = "./docs"
+
+create-docs:
+	cd $(SRC_DOCS) && $(MAKE)
diff --git a/configure.ac b/configure.ac
index c1cc486..5fcce55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,6 +99,7 @@ components/delegation/Makefile
 components/demo/Makefile
 components/replication/Makefile
 docs/Doxyfile
+docs/Makefile
 etc/Makefile
 etc/icinga2/Makefile
 etc/init.d/Makefile
diff --git a/docs/Makefile.am b/docs/Makefile.am
new file mode 100644
index 0000000..2f691f8
--- /dev/null
+++ b/docs/Makefile.am
@@ -0,0 +1,7 @@
+
+all: create-docs
+
+create-docs:
+	for file in *.txt; \
+	do asciidoc -a toc -a numbered $$file; \
+	done





More information about the icinga-checkins mailing list