doc/Makefile: use DISTVER as version for generated API docs if defined.

This commit is contained in:
Juan RP 2011-05-25 15:48:55 +02:00
parent 7b6809d6c9
commit 3c2ebfb6d3

View File

@ -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)