Ignore:
Timestamp:
Jul 22, 2011 11:52:50 AM (13 years ago)
Author:
ismangil
Message:

Fixed #1336 make doc now creates version specific docs

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjsip/build/Makefile

    r3319 r3677  
    55 
    66include ../../build.mak 
     7include ../../version.mak 
    78include $(PJDIR)/build/common.mak 
    89 
     
    110111 
    111112doc: 
    112         cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg 
    113         @if [ -n "$(WWWDIR)" ]; then \ 
    114                 echo "Copying to $(WWWDIR)/pjsip/docs/html.." ; \ 
    115                 cp -a ../docs/html/* $(WWWDIR)/pjsip/docs/html/ ; \ 
     113        cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg 
     114        @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html" ] ; then \ 
     115                echo "Creating docs/$(PJ_VERSION)/pjsip/docs/html" ; \ 
     116                mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html ; \ 
     117        fi  
     118        @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html" ] ; then \ 
     119                echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html.." ; \ 
     120                cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjsip/docs/html/ ; \ 
    116121        fi 
    117122 
Note: See TracChangeset for help on using the changeset viewer.