]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PR: avoids unnecessary compilation after regeneration of SALOMEconfig.h, with gcc3.2
authorprascle <prascle>
Thu, 12 Jun 2003 10:38:56 +0000 (10:38 +0000)
committerprascle <prascle>
Thu, 12 Jun 2003 10:38:56 +0000 (10:38 +0000)
Makefile.in

index e6d9a7669ec6b88a455c6aa42110431396b8e837..0fad469f31411bd5b24cdd85c18f5292625141bc 100644 (file)
@@ -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) ../../$< $@