Skip to content

Commit 166ab9c

Browse files
committed
Teach plpgsql's "make clean" to remove generated test files.
Copy the rules that src/test/regress/GNUmakefile uses for this purpose. Since these files are .gitignore'd, the mistake wasn't obvious unless you happened to look at "git status --ignored" in an allegedly clean tree. Oversight in commit 1858b10. No need for back-patch since that's not in the back branches.
1 parent 006b9dc commit 166ab9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pl/plpgsql/src/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ TOOLSDIR = $(top_srcdir)/src/tools
4141
GEN_KEYWORDLIST = $(PERL) -I $(TOOLSDIR) $(TOOLSDIR)/gen_keywordlist.pl
4242
GEN_KEYWORDLIST_DEPS = $(TOOLSDIR)/gen_keywordlist.pl $(TOOLSDIR)/PerfectHash.pm
4343

44+
# Test input and expected files. These are created by pg_regress itself, so we
45+
# don't have a rule to create them. We do need rules to clean them however.
46+
input_files = $(patsubst $(srcdir)/input/%.source,sql/%.sql, $(wildcard $(srcdir)/input/*.source))
47+
output_files := $(patsubst $(srcdir)/output/%.source,expected/%.out, $(wildcard $(srcdir)/output/*.source))
48+
4449
all: all-lib
4550

4651
# Shared library stuff
@@ -111,6 +116,7 @@ distprep: pl_gram.h pl_gram.c plerrcodes.h pl_reserved_kwlist_d.h pl_unreserved_
111116
# are not cleaned here.
112117
clean distclean: clean-lib
113118
rm -f $(OBJS)
119+
rm -f $(output_files) $(input_files)
114120
rm -rf $(pg_regress_clean_files)
115121

116122
maintainer-clean: distclean

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