Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 444fad4

Browse files
[[ Buildbot ]] Group new definitions with existing ones, and make them clearer
1 parent eb2d408 commit 444fad4

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

buildbot.mk

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ BUILDTOOL_STACK = builder/builder_tool.livecodescript
8585

8686
WKHTMLTOPDF ?= $(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

9098
ifeq ($(BUILD_PLATFORM),mac)
9199
LIVECODE = $(bin_dir)/LiveCode-Community.app/Contents/MacOS/LiveCode-Community
@@ -96,18 +104,10 @@ else ifeq ($(BUILD_PLATFORM),linux-x86)
96104
endif
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-
107107
buildtool_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
113113
RSYNC ?= rsync

0 commit comments

Comments
 (0)