File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,19 @@ uninstall: uninstall-local
5050uninstall-local :
5151 rm -f $(addprefix '$(DESTDIR )$(pgxsdir ) /$(subdir ) '/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
5252
53+ distprep :
54+ $(MAKE ) -C test/isolation $@
55+
5356clean :
5457 $(MAKE ) -C test $@
5558 $(MAKE ) -C tutorial NO_PGXS=1 $@
59+ $(MAKE ) -C test/isolation $@
5660 $(MAKE ) -C test/thread $@
5761
5862distclean maintainer-clean :
5963 $(MAKE ) -C test $@
6064 $(MAKE ) -C tutorial NO_PGXS=1 $@
65+ $(MAKE ) -C test/isolation $@
6166 $(MAKE ) -C test/thread $@
6267 rm -f Makefile.port Makefile.global
6368
Original file line number Diff line number Diff line change @@ -193,10 +193,12 @@ utils/probes.o: utils/probes.d $(SUBDIROBJS)
193193
194194# #########################################################################
195195
196+ # Be sure that these files get removed by the maintainer-clean target
196197distprep :
197198 $(MAKE ) -C parser gram.c gram.h scan.c
198199 $(MAKE ) -C bootstrap bootparse.c bootscanner.c
199200 $(MAKE ) -C catalog schemapg.h postgres.bki postgres.description postgres.shdescription
201+ $(MAKE ) -C replication repl_gram.c repl_scanner.c
200202 $(MAKE ) -C utils fmgrtab.c fmgroids.h errcodes.h
201203 $(MAKE ) -C utils/misc guc-file.c
202204
@@ -300,12 +302,14 @@ maintainer-clean: distclean
300302 rm -f bootstrap/bootparse.c \
301303 bootstrap/bootscanner.c \
302304 parser/gram.c \
303- parser/scan.c \
304305 parser/gram.h \
306+ parser/scan.c \
305307 catalog/schemapg.h \
306308 catalog/postgres.bki \
307309 catalog/postgres.description \
308310 catalog/postgres.shdescription \
311+ replication/repl_gram.c \
312+ replication/repl_scanner.c \
309313 utils/fmgroids.h \
310314 utils/fmgrtab.c \
311315 utils/errcodes.h \
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ all: isolationtester pg_isolation_regress
2929isolationtester : $(OBJS ) | submake-libpq submake-libpgport
3030 $(CC ) $(CFLAGS ) $(OBJS ) $(libpq_pgport ) $(LDFLAGS ) $(LDFLAGS_EX ) $(LIBS ) -o $@ $(X )
3131
32- distprep : specparse.c
32+ distprep : specparse.c specscanner.c
3333
3434# There is no correct way to write a rule that generates two files.
3535# Rules with two targets don't have that meaning, they are merely
@@ -58,7 +58,9 @@ ifdef FLEX
5858else
5959 @$(missing) flex $< $@
6060endif
61- # specparse.c is in the distribution tarball, so is not cleaned here
61+
62+ # specparse.c and specscanner.c are in the distribution tarball,
63+ # so do not clean them here
6264clean distclean :
6365 rm -f isolationtester$(X ) pg_isolation_regress$(X ) $(OBJS ) isolation_main.o
6466 rm -f pg_regress.o
You can’t perform that action at this time.
0 commit comments