Updated doxygen documentations

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2037 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjlib/build/Makefile b/pjlib/build/Makefile
index 68a0c0e..4d747e1 100644
--- a/pjlib/build/Makefile
+++ b/pjlib/build/Makefile
@@ -55,7 +55,11 @@
 all: $(TARGETS)
 
 doc:
-	cd .. && doxygen docs/doxygen.cfg
+	cd .. && rm -rf docs/html docs/latex && doxygen docs/doxygen.cfg
+	@if test ! "$(WWWDIR)" == ""; then \
+		echo "Copying to $(WWWDIR)/pjlib/docs/html.." ; \
+		cp -a ../docs/html/* $(WWWDIR)/pjlib/docs/html/ ; \
+	fi
 
 print:
 	$(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib print_lib