aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-04-04 13:21:25 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-04-04 13:21:25 -0400
commit2497a669effbbdda3e7be573d850b445d1ab6512 (patch)
tree7574702335c11ac868960ac89201f12cfd728c12 /src
parent88620824c2a62376e224c4b595b9fe69fb858978 (diff)
downloadpostgresql-2497a669effbbdda3e7be573d850b445d1ab6512.tar.gz
postgresql-2497a669effbbdda3e7be573d850b445d1ab6512.zip
Further cleanup for recent JSON-related commits.
Add overlooked .gitignore entries. Fix test_json_parser/Makefile to use the pgxs.mk clean rule instead of fighting it. Suppresses a warning from make, at least for me.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/test/sql/.gitignore2
-rw-r--r--src/test/modules/test_json_parser/Makefile7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/test/sql/.gitignore b/src/interfaces/ecpg/test/sql/.gitignore
index 057480a8f89..46adc571b48 100644
--- a/src/interfaces/ecpg/test/sql/.gitignore
+++ b/src/interfaces/ecpg/test/sql/.gitignore
@@ -48,5 +48,7 @@
/sqlda.c
/sqljson
/sqljson.c
+/sqljson_jsontable
+/sqljson_jsontable.c
/twophase
/twophase.c
diff --git a/src/test/modules/test_json_parser/Makefile b/src/test/modules/test_json_parser/Makefile
index a717b6f7add..628256b6bbd 100644
--- a/src/test/modules/test_json_parser/Makefile
+++ b/src/test/modules/test_json_parser/Makefile
@@ -6,6 +6,8 @@ TAP_TESTS = 1
OBJS = test_json_parser_incremental.o test_json_parser_perf.o
+EXTRA_CLEAN = test_json_parser_incremental$(X) test_json_parser_perf$(X)
+
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
@@ -17,8 +19,6 @@ include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
-.PHONY: clean
-
all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
%.o: $(top_srcdir)/$(subdir)/%.c
@@ -36,6 +36,3 @@ speed-check: test_json_parser_perf$(X)
time ./test_json_parser_perf 10000 $(top_srcdir)/$(subdir)/tiny.json
@echo Incremental parser:
time ./test_json_parser_perf -i 10000 $(top_srcdir)/$(subdir)/tiny.json
-
-clean:
- rm -rf test_json_parser_perf test_json_parser_incremental tmp_check $(OBJS)