Skip to content

Commit 3f76714

Browse files
committed
Set BUILD_DIR variable if not already set by top-level Makefile.
1 parent a8f35ff commit 3f76714

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/tests/multi-server/all.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ endef
102102
# Set directory name where all.mk is located. Help with relative paths
103103
MULTI_SERVER_TESTS_BASE_DIR_ABS_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
104104

105+
# Set BUILD_DIR to 'build' if not already set. BUILD_DIR
106+
# typically set by the top-level Makefile, however, we would also
107+
# like to be able to run the targets from this file without the use of the top-level Makefile.
108+
ifeq ($(origin BUILD_DIR), undefined)
109+
BUILD_DIR := build
110+
endif
105111
FREERADIUS_SERVER_BUILD_DIR_REL_PATH := $(BUILD_DIR)
106112

107113
# Where we keep build-side artifacts for test-framework

0 commit comments

Comments
 (0)