036a68
--- paraview-2.4.4/Utilities/IceT/doc/man/CMakeLists.txt.cmake245	2005-08-03 07:07:15.000000000 -0600
c8cec9
+++ paraview-2.4.4/Utilities/IceT/doc/man/CMakeLists.txt	2007-01-16 09:38:51.000000000 -0700
c8cec9
@@ -45,15 +45,19 @@
036a68
 MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/man7)
036a68
 
036a68
 MACRO(ICET_LINK_MAN3_FILE srcfile destfile)
036a68
-  ADD_CUSTOM_TARGET(man3/${destfile}.3 ALL
036a68
-    ln -sf ${ICET_SOURCE_DIR}/doc/man/man3/${srcfile}.3 man3/${destfile}.3
036a68
+  ADD_CUSTOM_COMMAND(
036a68
+    OUTPUT man3/${destfile}.3
036a68
+    COMMAND ln
036a68
+    ARGS -sf ${ICET_SOURCE_DIR}/doc/man/man3/${srcfile}.3 man3/${destfile}.3
036a68
     DEPENDS man3)
c8cec9
   INSTALL_FILES(/man/man3 FILES ${ICET_BINARY_DIR}/doc/man/man3/${destfile}.3)
036a68
 ENDMACRO(ICET_LINK_MAN3_FILE)
036a68
 
036a68
 MACRO(ICET_LINK_MAN7_FILE srcfile destfile)
036a68
-  ADD_CUSTOM_TARGET(man7/${destfile}.7 ALL
036a68
-    ln -sf ${ICET_SOURCE_DIR}/doc/man/man7/${srcfile}.7 man7/${destfile}.7
036a68
+  ADD_CUSTOM_COMMAND(
036a68
+    OUTPUT man7/${destfile}.7
036a68
+    COMMAND ln
036a68
+    ARGS -sf ${ICET_SOURCE_DIR}/doc/man/man7/${srcfile}.7 man7/${destfile}.7
036a68
     DEPENDS man7)
c8cec9
   INSTALL_FILES(/man/man7 FILES ${ICET_BINARY_DIR}/doc/man/man7/${destfile}.7)
036a68
 ENDMACRO(ICET_LINK_MAN7_FILE)
036a68
@@ -71,5 +75,5 @@
036a68
 ICET_LINK_MAN7_FILE(ICE-T ice-t)
036a68
 ICET_LINK_MAN7_FILE(ICE-T icet)
036a68
 
036a68
-INSTALL_FILES(/man/man3 FILES ${MAN3_FILES})
036a68
-INSTALL_FILES(/man/man7 FILES ${MAN7_FILES})
036a68
+INSTALL_FILES(/share/man/man3 FILES ${MAN3_FILES})
036a68
+INSTALL_FILES(/share/man/man7 FILES ${MAN7_FILES})