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/pjnath/build/Makefile

    r3319 r3677  
    44 
    55include ../../build.mak 
     6include ../../version.mak 
    67include $(PJDIR)/build/common.mak 
    78 
     
    7980 
    8081doc: 
    81         cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg 
    82         @if [ -n "$(WWWDIR)" ]; then \ 
    83                 echo "Copying to $(WWWDIR)/pjnath/docs/html.." ; \ 
    84                 cp -a ../docs/html/* $(WWWDIR)/pjnath/docs/html/ ; \ 
     82        cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg 
     83        @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjnath/docs/html" ] ; then \ 
     84                echo "Creating docs/$(PJ_VERSION)/pjnath/docs/html" ; \ 
     85                mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjnath/docs/html ; \ 
     86        fi  
     87        @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjnath/docs/html" ] ; then \ 
     88                echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjnath/docs/html.." ; \ 
     89                cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjnath/docs/html/ ; \ 
    8590        fi 
    8691 
Note: See TracChangeset for help on using the changeset viewer.