]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Additional build steps added to copy libSalomeStyle.so to 'build_dir'/bin/salome...
authorasv <asv@opencascade.com>
Wed, 15 Jun 2005 08:11:46 +0000 (08:11 +0000)
committerasv <asv@opencascade.com>
Wed, 15 Jun 2005 08:11:46 +0000 (08:11 +0000)
src/Style/Makefile.in

index c947ad335758ea9fd6b783b5c55ef31e5b388639..34e62a5247043e9f818db8efb111ddbcf79b776a 100644 (file)
@@ -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@