[beast] DOCS: split out srctree generation during docu builds



commit f8e4fa8a610d273a3c820bd1fd1c481d2be367b9
Author: Tim Janik <timj gtk org>
Date:   Sun May 8 14:39:42 2011 +0200

    DOCS: split out srctree generation during docu builds

 docs/dev/makefile |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/docs/dev/makefile b/docs/dev/makefile
index 010137b..c6753e9 100644
--- a/docs/dev/makefile
+++ b/docs/dev/makefile
@@ -12,9 +12,10 @@ DOCU_GLOBS = *.idl *.h *.H *.hh *.proc
 DOXY_GLOBS = $(DOCU_GLOBS) *.c *.C *.cc
 SRCTREE    = srctree
 
-build-stamp: $(git_stamp) doxygen.cfg
-	rm -rf html/ $(SRCTREE)/
-	mkdir -p html/ $(SRCTREE)/
+.PHONY: $(SRCTREE)
+$(SRCTREE):
+	rm -rf $(SRCTREE)/
+	mkdir -p $(SRCTREE)/
 	@echo "### Copying Source..."
 	CWD=`pwd` \
 	&& for dir in $(DOC_DIRS) ; do \
@@ -27,6 +28,12 @@ build-stamp: $(git_stamp) doxygen.cfg
 	cd $(SRCTREE)/ \
 	&& find . -type f \( $(patsubst %,-name '%' -o, $(DOCU_GLOBS)) -false \) \
 	   -exec sed  '1,+0s,^,/** @file {} */,' {} --in-place \;
+
+
+build-stamp: $(git_stamp) doxygen.cfg
+	rm -rf html/
+	mkdir -p html/
+	$(MAKE) $(SRCTREE)
 	@echo "### Doxygen..."
 	(cat doxygen.cfg \
 	&& echo "STRIP_FROM_PATH  = `pwd`/$(SRCTREE)" \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]