]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Improve Makefile: regenerate SALOMEconfig.h file when SALOMEconfig.ref.in is changed
authorvsr <vsr@opencascade.com>
Tue, 8 Jul 2008 11:20:12 +0000 (11:20 +0000)
committervsr <vsr@opencascade.com>
Tue, 8 Jul 2008 11:20:12 +0000 (11:20 +0000)
salome_adm/unix/Makefile.am

index b2d2a9a5f5dbaf40797c041ae2fef94e40616ec0..0597e7822d2fd476ba377135f1bf3eadd783c9f7 100644 (file)
@@ -34,7 +34,7 @@ DEPRECATED_FILES=\
 # rules for install and build (see make_common_starter.am)
 salomeadmux_DATA = SALOMEconfig.h.in
 salomeinclude_DATA = SALOMEconfig.h
-BUILT_SOURCES=SALOMEconfig.h SALOMEconfig.h.in
+BUILT_SOURCES=SALOMEconfig.ref SALOMEconfig.h SALOMEconfig.h.in
 
 mostlyclean-local:
        -rm -rf SALOMEconfig.h SALOMEconfig.h.in
@@ -45,9 +45,11 @@ SALOMEconfig.h.in : SALOMEconfig.ref.in
 # test if SALOMEconfig.ref has changed (contents), at build time
 SALOMEconfig.h: $(top_builddir)/salome_adm/unix/SALOMEconfig.ref
        @if ! [ -a $@ ]; then \
+         echo cp -p $< $@;   \
          cp -p $< $@;        \
        fi;                   \
-       if ! cmp $< $@; then  \
+       if ! cmp -s $< $@; then  \
+         echo cp -p $< $@;   \
          cp -p $< $@;        \
        fi;