Pārlūkot izejas kodu

HUE-8740 [librdbms] Make the build of dbproxy.jar optional

Romain 6 gadi atpakaļ
vecāks
revīzija
6f6bf9b359
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      desktop/libs/librdbms/Makefile

+ 5 - 1
desktop/libs/librdbms/Makefile

@@ -47,7 +47,8 @@ BLD_DIR_PLUGINS := $(PLUGIN_DIR)/java/target
 
 compile: $(DB_PROXY_JAR)
 
-# Build the plugin jar iff the source is present
+# Build the plugin jar iff BUILD_DB_PROXY is set and the source is present
+ifneq (,$(BUILD_DB_PROXY))
 ifneq (,$(wildcard $(PLUGIN_JAVA_DIR)))
 $(DB_PROXY_JAR): $(shell find $(PLUGIN_JAVA_DIR) -type f)
 	mkdir -p $(PLUGIN_JAVA_LIB)
@@ -62,3 +63,6 @@ else
 $(DB_PROXY_JAR):
 	$(error Cannot build DBProxy plugin without source)
 endif
+else:
+	@echo 'Skipping DB Proxy Jar build as BUILD_DB_PROXY not set.'
+endif