Salome HOME
Update SALOME User's guide:
[modules/geom.git] / doc / salome / tui / Makefile.am
index d14ad47ae294dc2a6aa8f29285382bc8fe1287dc..bf44e17b25eb3ac13cd32a9cd9375f2ad01a33a7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -32,9 +32,7 @@ dev_docs: doxyfile
        echo "===========================================" ;                    \
        echo "Replacing geompyDC by geompy" ;                                   \
        echo "===========================================" ;                    \
-       sed -e "/class geompyDC/d" -e "s/^ *#/#/g" -e "s/^ *def /def /g"        \
-         -e "s/geompyDC/geompy/g" $(top_srcdir)/src/GEOM_SWIG/geompyDC.py >    \
-         ./geompy.py                                      ;                    \
+       $(KERNEL_ROOT_DIR)/bin/salome/prepare_generating_doc.py geompy.py $(top_srcdir)/src/GEOM_SWIG/geompyDC.py geompy ;      \
        echo "===========================================" ;                    \
        echo "Generating TUI documentation" ;                                   \
        echo "===========================================" ;                    \
@@ -51,4 +49,13 @@ install-data-local:
        fi;
 
 uninstall-local:
-       rm -rf $(DESTDIR)$(docdir)/tui/GEOM
+       @test -d $(DESTDIR)$(tuidocdir) && chmod -R +w $(DESTDIR)$(tuidocdir) ; \
+       for filen in `find $(DESTDIR)$(tuidocdir) -mindepth 1 -maxdepth 1` dummy ; do \
+         case $${filen} in \
+           dummy ) ;; \
+           $(DESTDIR)$(tuidocdir)/docutils ) ;; \
+           $(DESTDIR)$(tuidocdir)/head.png ) ;; \
+           $(DESTDIR)$(tuidocdir)/geomscreen.png ) ;; \
+           * ) echo "removing $${filen}" && rm -rf $${filen} ;; \
+         esac ; \
+       done