1
- .PHONY : lintcheck format cleandepend cleansql docs clean test all
1
+ .PHONY : lintcheck format cleansql docs clean test all
2
2
3
3
PLJS_VERSION = 0.8.1
4
4
@@ -10,7 +10,7 @@ INCLUDEDIR_SERVER := ${shell $(PG_CONFIG) --includedir-server}
10
10
11
11
CP = cp
12
12
SRCS = src/pljs.c src/cache.c src/functions.c src/types.c src/params.c
13
- OBJS = src/pljs.o src/cache.o src/functions.o src/types.o src/params.o deps/quickjs/libquickjs.a
13
+ OBJS = src/pljs.o src/cache.o src/functions.o src/types.o src/params.o
14
14
MODULE_big = pljs
15
15
EXTENSION = pljs
16
16
DATA = pljs.control pljs--$(PLJS_VERSION ) .sql
@@ -21,19 +21,18 @@ REGRESS = init-extension function json jsonb json_conv types bytea context \
21
21
cursor array_spread plv8_regressions memory_limits inline composites \
22
22
trigger procedure find_function
23
23
24
- all : deps/quickjs/libquickjs.a pljs--$(PLJS_VERSION ) .sql
25
-
24
+ all : deps/quickjs/quickjs.h deps/quickjs/libquickjs.a pljs--$(PLJS_VERSION ) .sql
26
25
27
26
include $(PGXS )
28
27
29
-
28
+ src/pljs.o : deps/quickjs/libquickjs.a
30
29
31
30
deps/quickjs/quickjs.h :
32
31
mkdir -p deps
33
32
git submodule update --init --recursive
34
33
patch -p1 < patches/01-shared-lib-build
35
34
36
- deps/quickjs/libquickjs.a :
35
+ deps/quickjs/libquickjs.a : deps/quickjs/quickjs.h
37
36
cd deps/quickjs && make
38
37
39
38
format :
@@ -45,23 +44,12 @@ pljs--$(PLJS_VERSION).sql: pljs.sql
45
44
lintcheck :
46
45
clang-tidy $(SRCS ) -- -I$(INCLUDEDIR ) -I$(INCLUDEDIR_SERVER ) -I$(PWD ) --std=c11
47
46
48
- .depend : deps/quickjs/quickjs.h
49
- $(RM ) -f .depend
50
- $(foreach SRC,$(SRCS ) ,$(CC ) $(PG_CFLAGS ) -I$(INCLUDEDIR ) -I$(INCLUDEDIR_SERVER ) \
51
- -I$(PWD ) -MM -MT $(SRC:.c=.o ) $(SRC ) >> .depend; )
52
-
47
+ all : deps/quickjs/quickjs.h deps/quickjs/libquickjs.a pljs--$(PLJS_VERSION ) .sql
53
48
54
- all : deps/quickjs/libquickjs.a pljs--$(PLJS_VERSION ) .sql
55
-
56
- clean : cleandepend cleansql
57
-
58
- cleandepend :
59
- $(RM ) -f .depend
49
+ clean : cleansql
60
50
61
51
cleansql :
62
52
$(RM ) -f pljs--$(PLJS_VERSION ) .sql
63
53
64
54
docs :
65
55
doxygen src/Doxyfile
66
-
67
- include .depend
0 commit comments