From 77c8b33456d89a3a92783a003dd0366fe8e243d1 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 26 May 2006 09:34:29 +0000 Subject: [PATCH] SALOME versioning system improvement --- Makefile.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index eeb82468e..bb07d28cb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -28,7 +28,7 @@ top_srcdir=@top_srcdir@ top_builddir=. srcdir=@srcdir@ -VPATH=.:@srcdir@:@top_srcdir@/bin:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl +VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl @COMMENCE@ @@ -200,16 +200,23 @@ undo.png BIN_SCRIPT= \ VERSION +# copy header files in common directory + include_list = include/salome/SALOMEconfig.h \ include/salome/GEOM_version.h -# copy header files in common directory ifneq ($(HAVE_SSTREAM),yes) include_list += include/salome/sstream endif inc: idl $(include_list) +bin: bin/salome/VERSION + +bin/salome/VERSION : bin/VERSION + -$(RM) $@ + $(LN_S) ../../$< $@ + include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref -$(RM) $@ $(LN_S) ../../$< $@ @@ -228,7 +235,8 @@ include/salome/sstream: salome_adm/unix/sstream $(LN_S) ../../$< $@ include/salome/GEOM_version.h: GEOM_version.h - cp $< $@ + -$(RM) $@ + $(LN_S) ../../$< $@ depend: depend_idl -- 2.39.2