From 912009a6ea15e52e76bb28d601f94f283c6f44c3 Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 12 Jun 2003 10:47:47 +0000 Subject: [PATCH] PR: avoids unnecessary compilation after regeneration of SALOMEconfig.h, with gcc3.2 --- Makefile.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 1cf5b3fd..9f8be6bc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) ../../$< $@ -- 2.39.2