[sr-dev] git:master: db_mysql makefile: example FLAVOUR support

Andrei Pelinescu-Onciul andrei at iptel.org
Sat Oct 10 00:45:49 CEST 2009


Module: sip-router
Branch: master
Commit: aa45b1598c32eadb66dd0142777a20535a144a2b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aa45b1598c32eadb66dd0142777a20535a144a2b

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Sat Oct 10 00:50:32 2009 +0200

db_mysql makefile: example FLAVOUR support

---

 modules/db_mysql/Makefile |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/db_mysql/Makefile b/modules/db_mysql/Makefile
index d0efa6c..d47fd9a 100644
--- a/modules/db_mysql/Makefile
+++ b/modules/db_mysql/Makefile
@@ -21,12 +21,19 @@ LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
 
 SERLIBPATH=../../lib
 SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1
+ifneq (,$(filter sip-router ser, $(INSTALL_FLAVOUR)))
 MOD_INSTALL_SHARE= ../../scripts/mysql/my_create.sql \
 				   ../../scripts/mysql/my_data.sql   \
 				   ../../scripts/mysql/my_drop.sql
+else ifeq ($(INSTALL_FLAVOUR),kamailio)
+#TODO
+endif
 
 include ../../Makefile.modules
 
+ifneq (,$(filter sip-router ser, $(INSTALL_FLAVOUR)))
+# extra install for ser and sip-router
+
 install-mysql-script: $(bin_prefix)/$(bin_dir)
 	sed -e "s#^DEFAULT_SCRIPT_DIR.*#DEFAULT_SCRIPT_DIR=\"$(share_prefix)/$(share_dir)\"#g" \
 	< ../../scripts/mysql/$(SCR_NAME)_mysql.sh > \
@@ -35,3 +42,4 @@ install-mysql-script: $(bin_prefix)/$(bin_dir)
 
 install-scripts: install-mysql-script
 
+endif # INSTALL_FLAVOUR




More information about the sr-dev mailing list