Skip to content

Commit 9a343c7

Browse files
committed
Clean things we aren't going to build
This stops leftover build artifacts from 9.4 builds being incorporated into a 'make dist' from a 9.5 build
1 parent 52735de commit 9a343c7

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Makefile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SHLIB_LINK = $(libpq)
2323

2424
REGRESS = preseed infofuncs init_fail init preseed_check basic extended toasted replication_set add_table matview bidirectional primary_key foreign_key functions copy drop
2525

26-
EXTRA_CLEAN += pglogical.control
26+
EXTRA_CLEAN += pglogical.control compat/pglogical_compat.o
2727

2828
# The # in #define is taken as a comment, per https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142043
2929
# 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
7272
mkdir -p pglogical_dump
7373
$(MAKE) -C pglogical_dump -f $(abspath $(srcdir))/pglogical_dump/Makefile VPATH=$(abspath $(srcdir))/pglogical_dump all
7474

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-
8275
else
8376
# We can't do a normal 'make check' because PGXS doesn't support
8477
# creating a temp install. We don't want to use a normal PGXS
@@ -104,6 +97,16 @@ check: install regresscheck ;
10497

10598
endif
10699

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+
107110
else
108111

109112
# In-tree builds only

0 commit comments

Comments
 (0)