File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST ) ) ) )
2
2
3
- prepare-source : clean
3
+ prepare-source : prepare-original-source
4
+ patch -p1 < $(ROOT_DIR ) /patches/patch_scan.patch
5
+
6
+ prepare-original-source : clean
4
7
mkdir -p ./tmp
5
8
cd ./tmp
; git clone -b 16-latest --depth=1
[email protected] :pganalyze/libpg_query.git
6
9
sed -i ' s/sed -i ""/sed -i/g' ./tmp/libpg_query/Makefile
@@ -10,7 +13,6 @@ prepare-source: clean
10
13
cp $(ROOT_DIR ) tmp/libpg_query/tmp/postgres/src/backend/parser/scan.l $(ROOT_DIR ) crates/lexer-generator/resources
11
14
cp $(ROOT_DIR ) tmp/libpg_query/tmp/postgres/src/include/parser/kwlist.h $(ROOT_DIR ) crates/lexer-generator/resources
12
15
cp $(ROOT_DIR ) tmp/libpg_query/tmp/postgres/src/backend/parser/gram.y $(ROOT_DIR ) crates/parser-generator/resources
13
- patch -p1 < $(ROOT_DIR ) /patches/patch_scan.patch
14
16
15
17
clean :
16
18
-@ rm -rf ./tmp
You can’t perform that action at this time.
0 commit comments