Skip to content

Commit ac607ac

Browse files
committed
similar find and replace with $CURDIR in makefiles
with some manual fixes in cases where there was more path stuff after the variable
1 parent b30a6d4 commit ac607ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DataLayerService/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ src/main/java/org/microfunctions/data_layer/DataLayerService.java: \
3232
cd ../build_tools/thrift/$(THRIFT_VERSION)/; ./build_thrift.sh; cd -
3333
docker run --rm -i --name datalayer-thrift \
3434
--user $(UID):$(GID) \
35-
-v $(CURDIR):/usr/src/datalayer -w /usr/src/datalayer \
35+
-v "$(CURDIR)":/usr/src/datalayer -w /usr/src/datalayer \
3636
$(THRIFT_IMAGE_NAME):$(THRIFT_VERSION) \
3737
bash -c 'thrift --gen java -out ./src/main/java/ ./thrift/DataLayerMessage.thrift; thrift --gen java -out ./src/main/java/ ./thrift/DataLayerService.thrift'
3838
touch src/main/java/org/microfunctions/data_layer/DataLayerService.java
@@ -45,7 +45,7 @@ PythonClient/data_layer: \
4545
cd ../build_tools/thrift/$(THRIFT_VERSION)/; ./build_thrift.sh; cd -
4646
docker run --rm -i --name datalayer-thrift \
4747
--user $(UID):$(GID) \
48-
-v $(CURDIR):/usr/src/datalayer -w /usr/src/datalayer \
48+
-v "$(CURDIR)":/usr/src/datalayer -w /usr/src/datalayer \
4949
$(THRIFT_IMAGE_NAME):$(THRIFT_VERSION) \
5050
bash -c 'thrift --gen py -out ./PythonClient ./thrift/DataLayerMessage.thrift; thrift --gen py -out ./PythonClient ./thrift/DataLayerService.thrift'
5151

@@ -75,7 +75,7 @@ target/datalayerservice.jar: $(JAVA_SOURCES) \
7575
if [ ! -e .m2/repository ]; then mkdir -p .m2/repository; fi
7676
docker run --rm -i --name datalayer-maven \
7777
--user $(UID):$(GID) \
78-
-e HOME=/usr/src/datalayer -v $(CURDIR):/usr/src/datalayer -w /usr/src/datalayer \
78+
-e HOME=/usr/src/datalayer -v "$(CURDIR)":/usr/src/datalayer -w /usr/src/datalayer \
7979
maven:3.6.1-jdk-8 \
8080
mvn -Drevision=$(GIT_REVISION) -Dlibthrift.version=$(MVN_LIBTHRIFT_VERSION) -DargLine="-Duser.home=/tmp" -s /usr/src/datalayer/.m2/settings-docker.xml package
8181

0 commit comments

Comments
 (0)