summaryrefslogtreecommitdiff
path: root/pjlib-util
diff options
context:
space:
mode:
authorPerry Ismangil <perry@teluu.com>2011-07-19 21:42:58 +0000
committerPerry Ismangil <perry@teluu.com>2011-07-19 21:42:58 +0000
commit6ad90be1df339da1ae65328c738d60e142b13efe (patch)
treeb14aaf27ad7b0cbc1ced148200b7942d66e371b7 /pjlib-util
parentbbbd60d82b63c214eb9ac1a4a716393b06cc3217 (diff)
Re #1254 Doxygen configuration and makefile changes to support version specific documentation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3669 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util')
-rw-r--r--pjlib-util/build/Makefile13
-rw-r--r--pjlib-util/docs/doxygen.cfg4
-rw-r--r--pjlib-util/docs/header.html2
3 files changed, 12 insertions, 7 deletions
diff --git a/pjlib-util/build/Makefile b/pjlib-util/build/Makefile
index 69e92b41..fba93bb3 100644
--- a/pjlib-util/build/Makefile
+++ b/pjlib-util/build/Makefile
@@ -3,6 +3,7 @@
export UTIL_TEST_OBJS = main.o
include ../../build.mak
+include ../../version.mak
include $(PJDIR)/build/common.mak
RULES_MAK := $(PJDIR)/build/rules.mak
@@ -55,10 +56,14 @@ TARGETS := pjlib-util pjlib-util-test
all: $(TARGETS)
doc:
- cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg
- @if [ -n "$(WWWDIR)" ]; then \
- echo "Copying to $(WWWDIR)/pjlib-util/docs/html.." ; \
- cp -a ../docs/html/* $(WWWDIR)/pjlib-util/docs/html/ ; \
+ cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg
+ @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjlib-util/docs/html" ] ; then \
+ echo "Creating docs/$(PJ_VERSION)/pjlib-util/docs/html" ; \
+ mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjlib-util/docs/html ; \
+ fi
+ @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjlib-util/docs/html" ] ; then \
+ echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjlib-util/docs/html.." ; \
+ cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjlib-util/docs/html/ ; \
fi
dep: depend
diff --git a/pjlib-util/docs/doxygen.cfg b/pjlib-util/docs/doxygen.cfg
index 1c2e15de..402e2dd4 100644
--- a/pjlib-util/docs/doxygen.cfg
+++ b/pjlib-util/docs/doxygen.cfg
@@ -23,14 +23,14 @@ PROJECT_NAME = "PJLIB-UTIL Reference"
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER =
+PROJECT_NUMBER = $(PJ_VERSION)
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY = docs
+OUTPUT_DIRECTORY = docs/$(PJ_VERSION)
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
# documentation generated by doxygen is written. Doxygen will use this
diff --git a/pjlib-util/docs/header.html b/pjlib-util/docs/header.html
index 111bd62f..12ca4aa5 100644
--- a/pjlib-util/docs/header.html
+++ b/pjlib-util/docs/header.html
@@ -1,6 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
-<title>$title</title>
+<title>$title ($projectnumber)</title>
<link href="/style/style.css" rel="stylesheet" type="text/css">
</head><body>
<!--#include virtual="/header.html" -->