File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -315,8 +315,10 @@ maintainer-clean: distclean
315315 replication/syncrep_scanner.c \
316316 storage/lmgr/lwlocknames.c \
317317 storage/lmgr/lwlocknames.h \
318- utils/misc/guc-file .c \
318+ utils/adt/jsonpath_gram .c \
319319 utils/adt/jsonpath_gram.h \
320+ utils/adt/jsonpath_scan.c \
321+ utils/misc/guc-file.c \
320322 utils/sort/qsort_tuple.c
321323
322324
Original file line number Diff line number Diff line change @@ -33,11 +33,19 @@ OBJS = acl.o amutils.o arrayfuncs.o array_expanded.o array_selfuncs.o \
3333 txid.o uuid.o varbit.o varchar.o varlena.o version.o \
3434 windowfuncs.o xid.o xml.o
3535
36+ # There is no correct way to write a rule that generates two files.
37+ # See comment in src/backend/parser/Makefile for the explanation of
38+ # the trick used here.
39+
40+ jsonpath_gram.h : jsonpath_gram.c
41+ touch $@
42+
3643jsonpath_gram.c : BISONFLAGS += -d
3744
3845jsonpath_scan.c : FLEXFLAGS = -CF -p -p
46+ jsonpath_scan.c : FLEX_NO_BACKUP=yes
47+ jsonpath_scan.c : FLEX_FIX_WARNING=yes
3948
40- jsonpath_gram.h : jsonpath_gram.c ;
4149
4250# Force these dependencies to be known even without dependency info built:
4351jsonpath_gram.o jsonpath_scan.o jsonpath_parser.o : jsonpath_gram.h
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ install: all installdirs
5454 cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
5555 done
5656ifeq ($(vpath_build ) ,yes)
57- for file in catalog/schemapg.h catalog/pg_*_d.h parser/gram.h storage/lwlocknames.h utils/probes.h; do \
57+ for file in catalog/schemapg.h catalog/pg_*_d.h parser/gram.h storage/lwlocknames.h utils/probes.h utils/jsonpath_gram.h ; do \
5858 cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
5959 done
6060endif
@@ -78,7 +78,7 @@ uninstall:
7878
7979clean :
8080 rm -f utils/fmgroids.h utils/fmgrprotos.h utils/errcodes.h utils/header-stamp
81- rm -f parser/gram.h storage/lwlocknames.h utils/probes.h
81+ rm -f parser/gram.h storage/lwlocknames.h utils/probes.h utils/jsonpath_gram.h
8282 rm -f catalog/schemapg.h catalog/pg_* _d.h catalog/header-stamp
8383
8484distclean maintainer-clean : clean
You can’t perform that action at this time.
0 commit comments