forked from duckdb/postgres_scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 1.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: all clean format debug release duckdb_debug duckdb_release update
all: release
GEN=ninja
OSX_BUILD_UNIVERSAL_FLAG=
ifeq (${OSX_BUILD_UNIVERSAL}, 1)
OSX_BUILD_UNIVERSAL_FLAG=-DOSX_BUILD_UNIVERSAL=1
endif
# BUILD_OUT_OF_TREE_EXTENSION
POSTGRES_SCANNER_PATH=${PWD}
clean:
rm -rf build
rm -rf postgres
pull:
git submodule init
git submodule update --recursive --remote
debug:
mkdir -p build/debug && \
cd build/debug && \
cmake -DCMAKE_BUILD_TYPE=Debug ${OSX_BUILD_UNIVERSAL_FLAG} -DBUILD_TPCH_EXTENSION=1 -DBUILD_TPCDS_EXTENSION=1 -DEXTENSION_STATIC_BUILD=1 ../../duckdb/CMakeLists.txt -DEXTERNAL_EXTENSION_DIRECTORIES=${POSTGRES_SCANNER_PATH} -B. -S ../../duckdb && \
cmake --build .
release: pull
mkdir -p build/release && \
cd build/release && \
cmake -DCMAKE_BUILD_TYPE=Release ${OSX_BUILD_UNIVERSAL_FLAG} -DBUILD_TPCH_EXTENSION=1 -DBUILD_TPCDS_EXTENSION=1 -DEXTENSION_STATIC_BUILD=1 ../../duckdb/CMakeLists.txt -DEXTERNAL_EXTENSION_DIRECTORIES=${POSTGRES_SCANNER_PATH} -B. -S ../../duckdb && \
cmake --build .
test: release
./build/release/test/unittest --test-dir . "[postgres_scanner]"
format: pull
cp duckdb/.clang-format .
clang-format --sort-includes=0 -style=file -i postgres_scanner.cpp
clang-format --sort-includes=0 -style=file -i concurrency_test.cpp
cmake-format -i CMakeLists.txt