forked from greenplum-db/gpdb-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
78 lines (65 loc) · 2.14 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# protect the default target for this file from the targets in Makefile.global
# and Makefile.thirdparty
default: all
top_builddir = ..
include $(top_builddir)/src/Makefile.global
.PHONY: all install clean distclean gpcloud
#
# targets built via top_builddir/GNUmakefile
#
recurse_targets = ""
ifeq "$(enable_debug_extensions)" "yes"
recurse_targets = gp_sparse_vector \
gp_distribution_policy \
gp_internal_tools \
gp_debug_numsegments \
gp_inject_fault \
gp_exttable_fdw \
gp_legacy_string_agg \
gp_replica_check \
gp_toolkit \
pg_hint_plan
else
recurse_targets = gp_sparse_vector \
gp_distribution_policy \
gp_internal_tools \
gp_legacy_string_agg \
gp_exttable_fdw \
gp_toolkit \
pg_hint_plan
endif
ifeq "$(with_zstd)" "yes"
recurse_targets += zstd
endif
$(call recurse,all install clean distclean, $(recurse_targets))
all: gpcloud orafce
gpcloud:
@if [ "$(enable_gpcloud)" = "yes" ]; then \
$(MAKE) -C gpcloud && \
$(MAKE) -C gpcloud/bin/gpcheckcloud; \
fi
orafce:
@if [ "$(enable_orafce)" = "yes" ]; then \
$(MAKE) -C orafce NO_PGXS=true; \
fi
install:
@if [ "$(enable_gpcloud)" = "yes" ]; then \
$(MAKE) -C gpcloud install && \
$(MAKE) -C gpcloud/bin/gpcheckcloud install; \
fi
@if [ "$(enable_orafce)" = "yes" ]; then \
$(MAKE) -C orafce NO_PGXS=true install; \
fi
clean:
if [ "$(enable_gpcloud)" = "yes" ]; then $(MAKE) -C gpcloud cleanall; fi
if [ "${enable_orafce}" = "yes" ]; then $(MAKE) -C orafce NO_PGXS=true clean; fi
distclean:
if [ "$(enable_gpcloud)" = "yes" ]; then $(MAKE) -C gpcloud distclean; fi
if [ "${enable_orafce}" = "yes" ]; then $(MAKE) -C orafce NO_PGXS=true distclean; fi
installcheck:
$(MAKE) -C gp_internal_tools installcheck
if [ "$(enable_orafce)" = "yes" ]; then $(MAKE) -C orafce installcheck; fi
if [ "$(with_zstd)" = "yes" ]; then $(MAKE) -C zstd installcheck; fi
$(MAKE) -C gp_sparse_vector installcheck
$(MAKE) -C gp_exttable_fdw installcheck
$(MAKE) -C gp_toolkit installcheck