diff options
author | Perry Ismangil <perry@teluu.com> | 2011-07-22 11:52:50 +0000 |
---|---|---|
committer | Perry Ismangil <perry@teluu.com> | 2011-07-22 11:52:50 +0000 |
commit | dcd416b3403767b56b5bcbc7c1cc03dd5bbf878a (patch) | |
tree | e500ba85b30b3a076daa5831a068aa7445d2b877 /pjlib-util/build/Makefile | |
parent | a25a91ecc867db804d45b2c517925eef18e781f6 (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 'pjlib-util/build/Makefile')
-rw-r--r-- | pjlib-util/build/Makefile | 13 |
1 files changed, 9 insertions, 4 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 |