Updated doxygen documentations

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2037 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/build/Makefile b/pjsip/build/Makefile
index 8d746f0..ef78f42 100644
--- a/pjsip/build/Makefile
+++ b/pjsip/build/Makefile
@@ -109,7 +109,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)/pjsip/docs/html.." ; \
+		cp -a ../docs/html/* $(WWWDIR)/pjsip/docs/html/ ; \
+	fi
 
 dep: depend
 distclean: realclean