makefile changes
@@ -95,9 +95,11 @@ FOGBENCH_PYTHON_INSTALL_DIR = $(EXTRAS_INSTALL_DIR)/python
# DB schema update
SQLITE_SCHEMA_UPDATE_SCRIPT_SRC := scripts/plugins/storage/sqlite/schema_update.sh
+SQLITELB_SCHEMA_UPDATE_SCRIPT_SRC := scripts/plugins/storage/sqlitelb/schema_update.sh
POSTGRES_SCHEMA_UPDATE_SCRIPT_SRC := scripts/plugins/storage/postgres/schema_update.sh
POSTGRES_SCHEMA_UPDATE_DIR := $(SCRIPTS_INSTALL_DIR)/plugins/storage/postgres
SQLITE_SCHEMA_UPDATE_DIR := $(SCRIPTS_INSTALL_DIR)/plugins/storage/sqlite
+SQLITELB_SCHEMA_UPDATE_DIR := $(SCRIPTS_INSTALL_DIR)/plugins/storage/sqlitelb
# SCRIPTS TO INSTALL IN BIN DIR
FOGBENCH_SCRIPT_SRC := scripts/extras/fogbench
@@ -112,6 +114,7 @@ SUDOERS_SRC_RH := scripts/extras/fledge.sudoers_rh
COMMON_SCRIPTS_SRC := scripts/common
POSTGRES_SCRIPT_SRC := scripts/plugins/storage/postgres.sh
SQLITE_SCRIPT_SRC := scripts/plugins/storage/sqlite.sh
+SQLITELB_SCRIPT_SRC := scripts/plugins/storage/sqlitelb.sh
SOUTH_SCRIPT_SRC := scripts/services/south
SOUTH_C_SCRIPT_SRC := scripts/services/south_c
STORAGE_SERVICE_SCRIPT_SRC := scripts/services/storage
@@ -321,6 +324,7 @@ scripts_install : $(SCRIPTS_INSTALL_DIR) \
install_common_scripts \
install_postgres_script \
install_sqlite_script \
+ install_sqlitelb_script \
install_south_script \
install_south_c_script \
install_storage_service_script \
@@ -360,6 +364,13 @@ install_sqlite_script : $(SCRIPT_PLUGINS_STORAGE_INSTALL_DIR) \
$(CP_DIR) scripts/plugins/storage/sqlite/upgrade $(SQLITE_SCHEMA_UPDATE_DIR)
$(CP_DIR) scripts/plugins/storage/sqlite/downgrade $(SQLITE_SCHEMA_UPDATE_DIR)
+install_sqlitelb_script : $(SCRIPT_PLUGINS_STORAGE_INSTALL_DIR) \
+ $(SQLITELB_SCHEMA_UPDATE_DIR) $(SQLITELB_SCRIPT_SRC) $(SQLITELB_SCHEMA_UPDATE_SCRIPT_SRC)
+ $(CP) $(SQLITELB_SCRIPT_SRC) $(SCRIPT_PLUGINS_STORAGE_INSTALL_DIR)
+ $(CP) $(SQLITELB_SCHEMA_UPDATE_SCRIPT_SRC) $(SQLITELB_SCHEMA_UPDATE_DIR)
+ $(CP_DIR) scripts/plugins/storage/sqlite/upgrade $(SQLITELB_SCHEMA_UPDATE_DIR)
+ $(CP_DIR) scripts/plugins/storage/sqlite/downgrade $(SQLITELB_SCHEMA_UPDATE_DIR)
+
install_south_script : $(SCRIPT_SERVICES_INSTALL_DIR) $(SOUTH_SCRIPT_SRC)
$(CP) $(SOUTH_SCRIPT_SRC) $(SCRIPT_SERVICES_INSTALL_DIR)
@@ -435,6 +446,11 @@ $(SQLITE_SCHEMA_UPDATE_DIR) :
$(MKDIR_PATH) $@/upgrade
$(MKDIR_PATH) $@/downgrade
+$(SQLITELB_SCHEMA_UPDATE_DIR) :
+ $(MKDIR_PATH) $@
+ $(MKDIR_PATH) $@/upgrade
+ $(MKDIR_PATH) $@/downgrade
+
###############################################################################
########################## BIN INSTALL TARGETS ################################
###############################################################################
