Skip to content

Commit 174f65a

Browse files
committed
Fix some oversights in distprep and maintainer-clean targets.
At least two recent commits have apparently imagined that a comment in a Makefile stating that something would be included in the distribution tarball was sufficient to make it so. They hadn't bothered to hook into the upper maintainer-clean targets either. Per bug #5923 from Charles Johnson, in which it emerged that the 9.1alpha4 tarballs are short a few files that should be there.
1 parent 76fdee3 commit 174f65a

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,19 @@ uninstall: uninstall-local
5050
uninstall-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+
5356
clean:
5457
$(MAKE) -C test $@
5558
$(MAKE) -C tutorial NO_PGXS=1 $@
59+
$(MAKE) -C test/isolation $@
5660
$(MAKE) -C test/thread $@
5761

5862
distclean 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

src/backend/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
196197
distprep:
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 \

src/test/isolation/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ all: isolationtester pg_isolation_regress
2929
isolationtester: $(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
5858
else
5959
@$(missing) flex $< $@
6060
endif
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
6264
clean distclean:
6365
rm -f isolationtester$(X) pg_isolation_regress$(X) $(OBJS) isolation_main.o
6466
rm -f pg_regress.o

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy