Salome HOME
NRI : RedHat 9 compatibility (M. Tajchman).
[modules/smesh.git] / Makefile.in
index 8b90f03b3ec5d07e81eb64b0659df2aabcaaf54e..1b06ef6c5e3f94f3dabc3140479ca5da332feb54 100644 (file)
@@ -82,6 +82,9 @@ select1.png \
 SMESH_en.xml \
 SMESHCatalog.xml
 
 SMESH_en.xml \
 SMESHCatalog.xml
 
+BIN_SCRIPT= \
+VERSION
+
 # copy header files in common directory
 ifeq ($(HAVE_SSTREAM),yes)
   include_list=include/salome/SALOMEconfig.h
 # copy header files in common directory
 ifeq ($(HAVE_SSTREAM),yes)
   include_list=include/salome/SALOMEconfig.h
@@ -91,10 +94,19 @@ endif
 
 inc: idl $(include_list)
 
 
 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) ../../$< $@
 
        -$(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) ../../$< $@
 include/salome/sstream: salome_adm/unix/sstream
        -$(RM) $@
        $(LN_S) ../../$< $@