From ae22ea8e411319e77ce741539ca19bd935cf7699 Mon Sep 17 00:00:00 2001 From: prascle Date: Tue, 27 May 2003 07:56:01 +0000 Subject: [PATCH] PR : to avoid recompilation with gcc 3.2 when SALOMEconfig.h timestamp is changed --- Makefile.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) ../../$< $@ -- 2.39.2