From: asv Date: Wed, 15 Jun 2005 08:11:46 +0000 (+0000) Subject: Additional build steps added to copy libSalomeStyle.so to 'build_dir'/bin/salome... X-Git-Tag: T3_0_0_a4~114 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=224d21f7cee819b03124ad662ea9845f351250b7;p=modules%2Fgui.git Additional build steps added to copy libSalomeStyle.so to 'build_dir'/bin/salome/styles and to 'install_dir'/bin/salome/styles directories. --- diff --git a/src/Style/Makefile.in b/src/Style/Makefile.in index c947ad335..34e62a524 100644 --- a/src/Style/Makefile.in +++ b/src/Style/Makefile.in @@ -32,5 +32,29 @@ CPPFLAGS+=$(QT_INCLUDES) LDFLAGS+=$(QT_MT_LIBS) LIBS+= +# create $(top_builddir)/bin/salome/styles directory and copy libSalomeStyle.so there +LIB_PLUGINDIR = $(top_builddir)/bin/salome/styles +LIB_PLUGINLIB = $(patsubst %.la, $(LIB_PLUGINDIR)/%.so, $(filter %.la, $(LIB))) + +lib: $(LIB_PLUGINDIR) $(LIB_PLUGINLIB) + +$(LIB_PLUGINDIR): + mkdir -p $@ + +$(LIB_PLUGINLIB): + cp $(patsubst %.la, $(top_builddir)/lib/salome/%.so, $(filter %.la, $(LIB))) $@ + +# do the same in install step +INSTALL_PLUGINDIR = $(bindir)/styles +INSTALL_PLUGINLIB = $(patsubst %.la, $(INSTALL_PLUGINDIR)/%.so, $(filter %.la, $(LIB))) + +install: $(INSTALL_PLUGINDIR) $(INSTALL_PLUGINLIB) + +$(INSTALL_PLUGINDIR): + mkdir -p $@ + +$(INSTALL_PLUGINLIB): + cp $(patsubst %.la, $(libdir)/%.so, $(filter %.la, $(LIB))) $@ + @CONCLUDE@