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

index 1cf5b3fdd210303cc73a6a6318a558022f7800f5..9f8be6bc7205f368097b3356e8ee0122e1f9362e 100644 (file)
@@ -59,10 +59,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) ../../$< $@