From 1ac14cfb7cb016f30f1cda790d28afe0812bce89 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 8 Jul 2008 11:20:12 +0000 Subject: [PATCH] Improve Makefile: regenerate SALOMEconfig.h file when SALOMEconfig.ref.in is changed --- salome_adm/unix/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/salome_adm/unix/Makefile.am b/salome_adm/unix/Makefile.am index b2d2a9a5f..0597e7822 100644 --- a/salome_adm/unix/Makefile.am +++ b/salome_adm/unix/Makefile.am @@ -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; -- 2.39.2