@@ -85,7 +85,15 @@ BUILDTOOL_STACK = builder/builder_tool.livecodescript
8585
8686WKHTMLTOPDF ?= $(shell which wkhtmltopdf 2>/dev/null)
8787
88- bin_dir = $(BUILD_PLATFORM ) -bin
88+ # Those directories are given to the tool builder, and they might get passed
89+ # (like private-dir) to engine functions, to which a path relative to this file
90+ # becomes invalid).
91+ top_src_dir =$(pwd )
92+ engine_dir =${top_src_dir}
93+ output_dir =${top_src_dir}
94+ work_dir =${top_src_dir}/_cache/builder_tool
95+ private_dir =${top_src_dir}/..
96+ bin_dir = ${top_src_dir}/$(BUILD_PLATFORM ) -bin
8997
9098ifeq ($(BUILD_PLATFORM ) ,mac)
9199 LIVECODE = $(bin_dir ) /LiveCode-Community.app/Contents/MacOS/LiveCode-Community
@@ -96,18 +104,10 @@ else ifeq ($(BUILD_PLATFORM),linux-x86)
96104endif
97105
98106# FIXME add --warn-as-error
99- # Those directories are given to the tool builder, and they might get passed
100- # (like private-dir) to engine functions, to which a path relative to this file
101- # becomes invalid).
102- ENGINE_DIR =$(pwd )
103- OUTPUT_DIR =$(pwd )
104- WORK_DIR =-$(pwd ) /_cache/builder_tool
105- PRIVATE_DIR =$(pwd ) /..
106-
107107buildtool_command = $(LIVECODE ) -ui $(BUILDTOOL_STACK ) \
108108 --build $(BUILD_STABILITY ) \
109- --engine-dir ${ENGINE_DIR } --output-dir ${OUTPUT_DIR } --work-dir ${WORK_DIR } \
110- --private-dir ${PRIVATE_DIR }
109+ --engine-dir ${engine_dir } --output-dir ${output_dir } --work-dir ${work_dir } \
110+ --private-dir ${private_dir }
111111
112112# Settings for upload
113113RSYNC ?= rsync
0 commit comments