summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorPerry Ismangil <perry@teluu.com>2011-07-22 11:52:50 +0000
committerPerry Ismangil <perry@teluu.com>2011-07-22 11:52:50 +0000
commitdcd416b3403767b56b5bcbc7c1cc03dd5bbf878a (patch)
treee500ba85b30b3a076daa5831a068aa7445d2b877 /pjmedia
parenta25a91ecc867db804d45b2c517925eef18e781f6 (diff)
Fixed #1336 make doc now creates version specific docs
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3677 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/build/Makefile14
-rw-r--r--pjmedia/docs/doxygen.cfg4
-rw-r--r--pjmedia/docs/header.html2
3 files changed, 12 insertions, 8 deletions
diff --git a/pjmedia/build/Makefile b/pjmedia/build/Makefile
index b0e2014d..59d007fb 100644
--- a/pjmedia/build/Makefile
+++ b/pjmedia/build/Makefile
@@ -1,4 +1,5 @@
include ../../build.mak
+include ../../version.mak
THIRD_PARTY:=$(PJDIR)/third_party
@@ -122,11 +123,14 @@ TARGETS := pjmedia pjmedia-audiodev pjmedia-codec pjsdp pjmedia-test
all: $(TARGETS)
doc:
- cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg
- @if [ -n "$(WWWDIR)" ]; then \
- echo "Copying to $(WWWDIR)/pjmedia/docs/html.." ; \
- rm -rf $(WWWDIR)/pjmedia/docs/html/* ; \
- cp -a ../docs/html/* $(WWWDIR)/pjmedia/docs/html/ ; \
+ cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg
+ @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html" ] ; then \
+ echo "Creating docs/$(PJ_VERSION)/pjmedia/docs/html" ; \
+ mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html ; \
+ fi
+ @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html" ] ; then \
+ echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html.." ; \
+ cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html/ ; \
fi
dep: depend
diff --git a/pjmedia/docs/doxygen.cfg b/pjmedia/docs/doxygen.cfg
index ecd5f275..643260a0 100644
--- a/pjmedia/docs/doxygen.cfg
+++ b/pjmedia/docs/doxygen.cfg
@@ -23,14 +23,14 @@ PROJECT_NAME = "PJMEDIA 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/pjmedia/docs/header.html b/pjmedia/docs/header.html
index 61d5c99d..4b78a041 100644
--- a/pjmedia/docs/header.html
+++ b/pjmedia/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" -->