Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit166ab9c

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 unlessyou happened to look at "git status --ignored" in an allegedly cleantree.Oversight in commit1858b10. No need for back-patch since that'snot in the back branches.
1 parent006b9dc commit166ab9c

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
cleandistclean: 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)

[8]ページ先頭

©2009-2025 Movatter.jp