diff options
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/build/Makefile | 13 | ||||
-rw-r--r-- | pjsip/docs/doxygen.cfg | 4 | ||||
-rw-r--r-- | pjsip/docs/header.html | 2 |
3 files changed, 12 insertions, 7 deletions
diff --git a/pjsip/build/Makefile b/pjsip/build/Makefile index 247ee7f4..fc96b698 100644 --- a/pjsip/build/Makefile +++ b/pjsip/build/Makefile @@ -4,6 +4,7 @@ export TEST_OBJS = main.o include ../../build.mak +include ../../version.mak include $(PJDIR)/build/common.mak RULES_MAK := $(PJDIR)/build/rules.mak @@ -110,10 +111,14 @@ TARGETS := pjsip pjsip-ua pjsip-simple pjsua-lib pjsip-test all: $(TARGETS) doc: - cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg - @if [ -n "$(WWWDIR)" ]; then \ - echo "Copying to $(WWWDIR)/pjsip/docs/html.." ; \ - cp -a ../docs/html/* $(WWWDIR)/pjsip/docs/html/ ; \ + cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg + @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html" ] ; then \ + echo "Creating docs/$(PJ_VERSION)/pjsip/docs/html" ; \ + mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html ; \ + fi + @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html" ] ; then \ + echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html.." ; \ + cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html/ ; \ fi dep: depend diff --git a/pjsip/docs/doxygen.cfg b/pjsip/docs/doxygen.cfg index d6c23185..cd3f8e4c 100644 --- a/pjsip/docs/doxygen.cfg +++ b/pjsip/docs/doxygen.cfg @@ -23,14 +23,14 @@ PROJECT_NAME = "PJSIP 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/pjsip/docs/header.html b/pjsip/docs/header.html index 767dbaa4..cb930206 100644 --- a/pjsip/docs/header.html +++ b/pjsip/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" -->
|