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

    r3319 r3677  
    11include ../../build.mak 
     2include ../../version.mak 
    23 
    34THIRD_PARTY:=$(PJDIR)/third_party 
     
    123124 
    124125doc: 
    125         cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg 
    126         @if [ -n "$(WWWDIR)" ]; then \ 
    127                 echo "Copying to $(WWWDIR)/pjmedia/docs/html.." ; \ 
    128                 rm -rf $(WWWDIR)/pjmedia/docs/html/* ; \ 
    129                 cp -a ../docs/html/* $(WWWDIR)/pjmedia/docs/html/ ; \ 
     126        cd .. && rm -rf docs/$(PJ_VERSION) && doxygen docs/doxygen.cfg 
     127        @if [ -n "$(WWWDIR)" ] && ! [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html" ] ; then \ 
     128                echo "Creating docs/$(PJ_VERSION)/pjmedia/docs/html" ; \ 
     129                mkdir -p $(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html ; \ 
     130        fi  
     131        @if [ -n "$(WWWDIR)" ] && [ -d "$(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html" ] ; then \ 
     132                echo "Copying docs/$(PJ_VERSION) to $(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html.." ; \ 
     133                cp -v -a ../docs/$(PJ_VERSION)/html/* $(WWWDIR)/docs/$(PJ_VERSION)/pjmedia/docs/html/ ; \ 
    130134        fi 
    131135 
Note: See TracChangeset for help on using the changeset viewer.