Skip to content

Commit 3b7c62f

Browse files
author
markheger
committedNov 9, 2020
Makefiles updated for Streams build service
1 parent 90f7d97 commit 3b7c62f

File tree

10 files changed

+74
-6
lines changed

10 files changed

+74
-6
lines changed
 

‎General/SensorMonitor/Makefile

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,23 @@
2323
# end_generated_IBM_copyright_prolog
2424
.PHONY: all distributed clean
2525

26-
SPLC_FLAGS = -a -t $(STREAMS_INSTALL)/toolkits/com.ibm.streamsx.json:$(STREAMS_INSTALL)/toolkits/com.ibm.streams.cep:$(STREAMS_INSTALL)/toolkits/com.ibm.streamsx.messagehub
26+
SPLC_FLAGS = -a -t $(STREAMS_INSTALL)/toolkits/com.ibm.streamsx.json:$(STREAMS_INSTALL)/toolkits/com.ibm.streams.cep:$(STREAMS_INSTALL)/toolkits/com.ibm.streamsx.messagehub
27+
ifdef STREAMS_BUILDSERVICE
28+
SPLC_FLAGS = -a -t ../toolkits:$(STREAMS_INSTALL)/toolkits
29+
endif
2730
SPLC = $(STREAMS_INSTALL)/bin/sc
2831

2932
SPL_CMD_ARGS ?=
30-
SPL_DATA_DIR ?= --data-directory ./data
3133
SPL_MAIN_COMPOSITE_MHUB = application::SensorMonitorMain_NoMHub
3234
SPL_MAIN_COMPOSITE_PUBLISH_MHUB = application::PublishData
3335
SPL_MAIN_COMPOSITE_SIMPLE = application::SensorMonitorMain
3436

3537
all: distributed
3638

3739
distributed:
38-
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE_MHUB) $(SPL_DATA_DIR) $(SPL_CMD_ARGS)
39-
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE_SIMPLE) $(SPL_DATA_DIR) $(SPL_CMD_ARGS)
40-
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE_PUBLISH_MHUB) $(SPL_DATA_DIR) $(SPL_CMD_ARGS)
40+
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE_MHUB) $(SPL_CMD_ARGS)
41+
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE_SIMPLE) $(SPL_CMD_ARGS)
42+
$(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE_PUBLISH_MHUB) $(SPL_CMD_ARGS)
4143

4244
clean:
4345
$(SPLC) $(SPLC_FLAGS) -C -M $(SPL_MAIN_COMPOSITE_SIMPLE)

‎ReadAndStoreData/TwitterSmackdown/Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@
2424
.PHONY: all clean
2525

2626
SPLC = $(STREAMS_INSTALL)/bin/sc
27-
SPLC_FLAGS = -a -t $(STREAMS_INSTALL)/toolkits/com.ibm.streamsx.inet
27+
SPL_PATH = $(STREAMS_INSTALL)/toolkits/com.ibm.streamsx.inet
28+
ifdef STREAMS_BUILDSERVICE
29+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
30+
endif
2831
SAMPLE_TWITTERSTREAM = sample::TwitterStream
2932
SAMPLE_SMACKDOWN = sample::Smackdown
3033
SPL_DATA_DIR ?= /tmp
3134
SPL_CMD_ARGS ?=
35+
SPLC_FLAGS = -a -t $(SPL_PATH)
3236

3337
all: distributed
3438

‎TextAnalysis/BigInsightsStarterKitApp/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

‎TextAnalysis/TextAnalyticsToGo/Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1212
SPLC = $(STREAMS_STUDIO_SC_PATH)
1313
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1414
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
15+
SPLC_OUT1 = $(OUTPUT_DIR)
16+
SPLC_OUT2 = $(OUTPUT_DIR)
17+
SPLC_OUT3 = $(OUTPUT_DIR)
18+
else ifdef STREAMS_BUILDSERVICE
19+
$(info Building using buildservice)
20+
ifeq ($(STREAMS_INSTALL),)
21+
$(error error: environment variable STREAMS_INSTALL has to be set)
22+
endif
23+
SPLC = $(STREAMS_INSTALL)/bin/sc
24+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
25+
SPLC_OUT1 = $(OUTPUT_DIR)
26+
SPLC_OUT2 = $(OUTPUT_DIR)
27+
SPLC_OUT3 = $(OUTPUT_DIR)
1528
else
1629
# Building outside of Streams Studio...
1730
ifeq ($(STREAMS_INSTALL),)

‎timeseries/AnomalyDetectorSample/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

‎timeseries/AutoForecasterSamples/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

‎timeseries/DSPFilterBandpassExample/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

‎timeseries/DSPFilterFiniteSample/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

‎timeseries/KMeansClusteringControlSignalSample/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

‎timeseries/STD2Samples/Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ifeq ($(STREAMS_STUDIO_BUILDING), 1)
1010
SPLC = $(STREAMS_STUDIO_SC_PATH)
1111
SPL_PATH = $(STREAMS_STUDIO_SPL_PATH)
1212
OUTPUT_DIR = $(STREAMS_STUDIO_OUTPUT_DIRECTORY)
13+
else ifdef STREAMS_BUILDSERVICE
14+
$(info Building using buildservice)
15+
ifeq ($(STREAMS_INSTALL),)
16+
$(error error: environment variable STREAMS_INSTALL has to be set)
17+
endif
18+
SPLC = $(STREAMS_INSTALL)/bin/sc
19+
SPL_PATH = ../toolkits:$(STREAMS_INSTALL)/toolkits
1320
else
1421
# Building outside of Streams Studio...
1522
ifeq ($(STREAMS_INSTALL),)

0 commit comments

Comments
 (0)
Please sign in to comment.