From 3c2ebfb6d38ad4fdb746322b63e6eb4095eca820 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 25 May 2011 15:48:55 +0200 Subject: [PATCH] doc/Makefile: use DISTVER as version for generated API docs if defined. --- doc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/Makefile b/doc/Makefile index 2a2ef04a..b2c4b16a 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -17,7 +17,11 @@ $(FILES): %.$(FORMAT): %.dot dot -T$(FORMAT) $< -o images/$@ doxyfiletrans: $(DOXYF).in +ifdef DISTVER + sed -e "s|@@PROJECT_NUMBER@@|${DISTVER}|" $< > $(DOXYF) +else sed -e "s|@@PROJECT_NUMBER@@|$$(date +%Y%m%d)|" $< > $(DOXYF) +endif doxygendocs: $(FILES) doxyfiletrans doxygen $(DOXYF)