From: prascle Date: Thu, 12 Jun 2003 10:38:56 +0000 (+0000) Subject: PR: avoids unnecessary compilation after regeneration of SALOMEconfig.h, with gcc3.2 X-Git-Tag: V1_1_1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20463e956e9e7431f968e09d71f95cb58bccb7b4;p=modules%2Fgeom.git PR: avoids unnecessary compilation after regeneration of SALOMEconfig.h, with gcc3.2 --- diff --git a/Makefile.in b/Makefile.in index e6d9a7669..0fad469f3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -135,10 +135,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) ../../$< $@