From: Gunnar Beutner Date: Tue, 5 Feb 2013 15:30:34 +0000 (+0100) Subject: Documentation: implement make target for asciidoc generation X-Git-Tag: v0.0.2~548 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d780d5d3d4baa668e6b45cf770d68718280643f;p=icinga2 Documentation: implement make target for asciidoc generation Fixes #3230 --- diff --git a/Makefile.am b/Makefile.am index 625231656..a048ff8b4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,7 +10,9 @@ SUBDIRS = \ icinga-app \ test \ itl \ - etc + etc \ + docs + #doc icinga2docdir = ${docdir} icinga2doc_DATA = \ @@ -79,8 +81,3 @@ 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/docs/Makefile.am b/docs/Makefile.am index 2f691f845..5ef6a6855 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -1,7 +1,11 @@ +EXTRA_DIST = \ + icinga2-config.txt \ + icinga2-intro.txt -all: create-docs +icinga2docdir = ${docdir} +icinga2doc_DATA = \ + icinga2-config.html \ + icinga2-intro.html -create-docs: - for file in *.txt; \ - do asciidoc -a toc -a numbered $$file; \ - done +%.html: %.txt + asciidoc -a toc -a numbered $^