Salome HOME
NRI : Merge from V1_2.
[modules/visu.git] / Makefile.in
index 8e49624084b5e1df0b9b38e3bf0eed1a799c03d6..9f8be6bc7205f368097b3356e8ee0122e1f9362e 100644 (file)
@@ -42,10 +42,12 @@ Visu_wireframe.png \
 Visu_scaling.png \
 VISU_en.xml \
 VISU_fr.xml \
+VISUCatalog.xml \
 Visu_tree_visu.png \
 Visu_streamlines.png
 
-BIN_SCRIPT=
+BIN_SCRIPT= \
+VERSION
 
 
 # copy header files in common directory
@@ -57,10 +59,19 @@ endif
 
 inc: idl $(include_list)
 
-include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.h
+include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
        -$(RM) $@
        $(LN_S) ../../$< $@
 
+# test if SALOMEconfig.h has changed (contents)
+salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
+       @if ! [ -a $@ ]; then \
+         cp -p $< $@;        \
+       fi;                   \
+       if ! cmp $< $@; then  \
+         cp -p $< $@;        \
+       fi;                   \
+
 include/salome/sstream: salome_adm/unix/sstream
        -$(RM) $@
        $(LN_S) ../../$< $@