diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-01-29 11:06:59 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-01-29 11:07:04 -0500 |
commit | 166ab9c8d343b51e6838d7b59194d32a0019242f (patch) | |
tree | 05b5cbd3d88d893e5b92337ea2759d1b869399d6 /src | |
parent | 006b9dcad41956f180f9363648206fede8417592 (diff) | |
download | postgresql-166ab9c8d343b51e6838d7b59194d32a0019242f.tar.gz postgresql-166ab9c8d343b51e6838d7b59194d32a0019242f.zip |
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 1858b105b. No need for back-patch since that's
not in the back branches.
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpgsql/src/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index e0bcccf39e2..0efa1caae23 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -41,6 +41,11 @@ TOOLSDIR = $(top_srcdir)/src/tools GEN_KEYWORDLIST = $(PERL) -I $(TOOLSDIR) $(TOOLSDIR)/gen_keywordlist.pl GEN_KEYWORDLIST_DEPS = $(TOOLSDIR)/gen_keywordlist.pl $(TOOLSDIR)/PerfectHash.pm +# Test input and expected files. These are created by pg_regress itself, so we +# don't have a rule to create them. We do need rules to clean them however. +input_files = $(patsubst $(srcdir)/input/%.source,sql/%.sql, $(wildcard $(srcdir)/input/*.source)) +output_files := $(patsubst $(srcdir)/output/%.source,expected/%.out, $(wildcard $(srcdir)/output/*.source)) + all: all-lib # Shared library stuff @@ -111,6 +116,7 @@ distprep: pl_gram.h pl_gram.c plerrcodes.h pl_reserved_kwlist_d.h pl_unreserved_ # are not cleaned here. clean distclean: clean-lib rm -f $(OBJS) + rm -f $(output_files) $(input_files) rm -rf $(pg_regress_clean_files) maintainer-clean: distclean |