1
- .PHONY : all clean format debug release duckdb_debug duckdb_release pull update
1
+ PROJ_DIR := $( dir $( abspath $( lastword $( MAKEFILE_LIST ) ) ) )
2
2
3
3
all : release
4
4
5
- MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST ) ) )
6
- PROJ_DIR := $(dir $(MKFILE_PATH ) )
7
-
8
- EXTRA_CMAKE_VARIABLES :=
9
-
10
- # These flags will make DuckDB build the extension
11
- EXTRA_CMAKE_VARIABLES += -DEXTENSION_STATIC_BUILD=1 -DBUILD_EXTENSIONS="tpch;json" ${OSX_ARCH_FLAG}
12
- EXTRA_CMAKE_VARIABLES += -DDUCKDB_EXTENSION_NAMES="substrait"
13
- EXTRA_CMAKE_VARIABLES += -DDUCKDB_EXTENSION_SUBSTRAIT_SHOULD_LINK=1
14
- EXTRA_CMAKE_VARIABLES += -DDUCKDB_EXTENSION_SUBSTRAIT_LOAD_TESTS=1
15
- EXTRA_CMAKE_VARIABLES += -DDUCKDB_EXTENSION_SUBSTRAIT_PATH=$(PROJ_DIR )
16
- EXTRA_CMAKE_VARIABLES += -DDUCKDB_EXTENSION_SUBSTRAIT_TEST_PATH=$(PROJ_DIR ) test
17
- EXTRA_CMAKE_VARIABLES += -DDUCKDB_EXTENSION_SUBSTRAIT_INCLUDE_PATH="$(PROJ_DIR ) src/include"
18
- export
19
-
20
- DUCKDB_DIRECTORY =
21
- ifndef DUCKDB_DIR
22
- DUCKDB_DIRECTORY=./duckdb
23
- else
24
- DUCKDB_DIRECTORY=${DUCKDB_DIR}
5
+ # Configuration of extension
6
+ EXT_NAME =substrait
7
+ EXT_CONFIG =${PROJ_DIR}extension_config.cmake
8
+
9
+ CORE_EXTENSIONS ='tpch;json'
10
+
11
+ # Set this flag during building to enable the benchmark runner
12
+ ifeq (${BUILD_BENCHMARK}, 1)
13
+ TOOLCHAIN_FLAGS:=${TOOLCHAIN_FLAGS} -DBUILD_BENCHMARKS=1
25
14
endif
26
15
16
+ # Include the Makefile from extension-ci-tools
17
+ include extension-ci-tools/makefiles/duckdb_extension.Makefile
18
+
27
19
pull :
28
20
git submodule init
29
21
git submodule update --recursive --remote
30
22
31
- clean :
32
- rm -rf ${DUCKDB_DIRECTORY} /build
33
- rm -rf testext
34
- cd ${DUCKDB_DIRECTORY} && make clean
35
-
36
- # Main builds
37
- debug :
38
- # Have to actually cd here because the makefile assumes it's called from within duckdb
39
- cd ${DUCKDB_DIRECTORY} && $(MAKE) -C . debug
40
-
41
- release :
42
- # Have to actually cd here because the makefile assumes it's called from within duckdb
43
- cd ${DUCKDB_DIRECTORY} && $(MAKE) -C . release
44
-
45
23
# Client builds
46
24
% _js : export BUILD_NODE=1
47
25
debug_js : debug
@@ -62,10 +40,10 @@ release_python: release
62
40
test : test_release
63
41
64
42
test_release : release
65
- ${DUCKDB_DIRECTORY} / build/release/test/unittest " $( PROJ_DIR) test/*"
43
+ build/release/test/unittest " $( PROJ_DIR) test/*"
66
44
67
45
test_debug : debug
68
- ${DUCKDB_DIRECTORY} / build/debug/test/unittest " $( PROJ_DIR) test/*"
46
+ build/debug/test/unittest " $( PROJ_DIR) test/*"
69
47
70
48
# Client tests
71
49
test_python : test_debug_python
@@ -88,4 +66,4 @@ format:
88
66
rm .clang-format
89
67
90
68
update :
91
- git submodule update --remote --merge
69
+ git submodule update --remote --merge
0 commit comments