aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/Makefile4
-rw-r--r--src/backend/utils/adt/Makefile10
2 files changed, 12 insertions, 2 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 31d9d6605d9..ecbfa875af1 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -315,8 +315,10 @@ maintainer-clean: distclean
replication/syncrep_scanner.c \
storage/lmgr/lwlocknames.c \
storage/lmgr/lwlocknames.h \
- utils/misc/guc-file.c \
+ utils/adt/jsonpath_gram.c \
utils/adt/jsonpath_gram.h \
+ utils/adt/jsonpath_scan.c \
+ utils/misc/guc-file.c \
utils/sort/qsort_tuple.c
diff --git a/src/backend/utils/adt/Makefile b/src/backend/utils/adt/Makefile
index 6b24a9caa14..60925f4e28f 100644
--- a/src/backend/utils/adt/Makefile
+++ b/src/backend/utils/adt/Makefile
@@ -33,11 +33,19 @@ OBJS = acl.o amutils.o arrayfuncs.o array_expanded.o array_selfuncs.o \
txid.o uuid.o varbit.o varchar.o varlena.o version.o \
windowfuncs.o xid.o xml.o
+# There is no correct way to write a rule that generates two files.
+# See comment in src/backend/parser/Makefile for the explanation of
+# the trick used here.
+
+jsonpath_gram.h: jsonpath_gram.c
+ touch $@
+
jsonpath_gram.c: BISONFLAGS += -d
jsonpath_scan.c: FLEXFLAGS = -CF -p -p
+jsonpath_scan.c: FLEX_NO_BACKUP=yes
+jsonpath_scan.c: FLEX_FIX_WARNING=yes
-jsonpath_gram.h: jsonpath_gram.c ;
# Force these dependencies to be known even without dependency info built:
jsonpath_gram.o jsonpath_scan.o jsonpath_parser.o: jsonpath_gram.h