File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SHLIB_LINK = $(libpq)
23
23
24
24
REGRESS = preseed infofuncs init_fail init preseed_check basic extended toasted replication_set add_table matview bidirectional primary_key foreign_key functions copy drop
25
25
26
- EXTRA_CLEAN += pglogical.control
26
+ EXTRA_CLEAN += pglogical.control compat/pglogical_compat.o
27
27
28
28
# The # in #define is taken as a comment, per https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142043
29
29
# so it must be escaped. The $ placeholders in awk must be doubled too.
@@ -72,13 +72,6 @@ pglogical_dump/pglogical_dump: pglogical_dump/pg_dump.c
72
72
mkdir -p pglogical_dump
73
73
$(MAKE ) -C pglogical_dump -f $(abspath $(srcdir ) ) /pglogical_dump/Makefile VPATH=$(abspath $(srcdir ) ) /pglogical_dump all
74
74
75
- pglogical-dump-clean :
76
- if [ -e pglogical_dump ]; then $( MAKE) -C pglogical_dump -f $( abspath $( srcdir) ) /pglogical_dump/Makefile VPATH=$( abspath $( srcdir) ) /pglogical_dump clean; fi
77
-
78
- clean : pglogical-dump-clean
79
-
80
- .PHONY : pglogical-dump-clean
81
-
82
75
else
83
76
# We can't do a normal 'make check' because PGXS doesn't support
84
77
# creating a temp install. We don't want to use a normal PGXS
@@ -104,6 +97,16 @@ check: install regresscheck ;
104
97
105
98
endif
106
99
100
+
101
+ # Even if we don't build pglogical_dump we should still clean it
102
+ # if the submodule exists
103
+ pglogical-dump-clean :
104
+ if [ -e pglogical_dump/Makefile ]; then $( MAKE) -C pglogical_dump -f $( abspath $( srcdir) ) /pglogical_dump/Makefile VPATH=$( abspath $( srcdir) ) /pglogical_dump clean; fi
105
+
106
+ clean : pglogical-dump-clean
107
+
108
+ .PHONY : pglogical-dump-clean
109
+
107
110
else
108
111
109
112
# In-tree builds only
You can’t perform that action at this time.
0 commit comments