From: prascle Date: Tue, 27 May 2003 07:56:01 +0000 (+0000) Subject: PR : to avoid recompilation with gcc 3.2 when SALOMEconfig.h timestamp X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae22ea8e411319e77ce741539ca19bd935cf7699;p=modules%2Fyacs.git PR : to avoid recompilation with gcc 3.2 when SALOMEconfig.h timestamp is changed --- diff --git a/Makefile.in b/Makefile.in index c8c6007ae..a72a6aeed 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) ../../$< $@