Salome HOME
PR : to avoid recompilation with gcc 3.2 when SALOMEconfig.h timestamp
authorprascle <prascle>
Tue, 27 May 2003 07:56:01 +0000 (07:56 +0000)
committerprascle <prascle>
Tue, 27 May 2003 07:56:01 +0000 (07:56 +0000)
 is changed

Makefile.in

index c8c6007aec835349151628f5b8b33d5974f39ee5..a72a6aeedbd13df14623460d348e97c4a013f0f0 100644 (file)
@@ -103,10 +103,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) ../../$< $@