[beast: 178/210] DOCS: add html-docs rule to build docs on demand
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 178/210] DOCS: add html-docs rule to build docs on demand
- Date: Fri, 5 Jul 2013 22:48:57 +0000 (UTC)
commit 4ac0376bc25a57c43a49a70c91c73499ff44e463
Author: Tim Janik <timj gnu org>
Date: Tue Jun 18 22:26:15 2013 +0200
DOCS: add html-docs rule to build docs on demand
docs/Makefile.am | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 21d42cf..69e27bd 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -16,6 +16,21 @@ DOC_VERSION = $(or $(DSC_VERSION), $(PRJ_VERSION))
# == html/ build rules ==
include Makefile.doxygen
+git_index_file = $(shell test ! -x $(top_srcdir)/.git/ || echo $(top_srcdir)/.git/index)
+html/doc-version: @INGIT@ $(git_index_file) # conditionally rebuild, depending on HEAD changes
+ $(AM_V_GEN)
+ $(Q) test -e $@ && test "`cat $ `" = "$(DOC_VERSION)" \
+ || $(MAKE) $(AM_MAKEFLAGS) --no-print-directory html-docs
+ $(Q) rm -f $@ && echo "$(DOC_VERSION)" > $@
+clean-html-docs:
+ rm -rf html/
+clean-local: @INGIT@ clean-html-docs doxygen-clean
+EXTRA_DIST += html
+html-docs: doxygen-check
+ $(Q) rm -rf html/
+ $(Q) $(MAKE) $(AM_MAKEFLAGS) --no-print-directory build-docs DOXYGEN_GRAPHICS=NO DOC_TARGET=html
+ $(Q) echo "$(DOC_VERSION)" > html/doc-version
+.PHONY: html-docs
# == Doxygen Build Rules ==
HTMLMAN_FILES = imports/beast.1.html imports/bse.5.html imports/bsescm.1.html
imports/bsewavetool.1.html imports/sfidl.1.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]