-rm -r $SRC_DIR/projects/stargazer/plugins/configuration/sgconfig2
-rm -r $SRC_DIR/projects/stargazer/plugins/configuration/sgconfig-ng
-rm -r $SRC_DIR/projects/stargazer/plugins/configuration/xrconfig
-rm -r $SRC_DIR/projects/stargazer/plugins/other/userstat
-rm -r $SRC_DIR/projects/stargazer/plugins/store/db
+rm -r $SRC_DIR/doc/help
+rm $SRC_DIR/doc/help.odt
+
+if [ -f /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl ]
+then
+ echo "Building doc..."
+ make -C $SRC_DIR/doc/xmlrpc
+ make -C $SRC_DIR/doc/help
+else
+ echo "No XSL stylesheets, skipping doc build"
+fi