PR: avoids unnecessary compilation after regeneration of SALOMEconfig.h, with gcc3.2

This commit is contained in:
prascle 2003-06-12 10:38:56 +00:00
parent 219f414404
commit 20463e956e

View 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) ../../$< $@