From 700c076629379228dd36bd941e4f0c874ac6c2da Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Fri, 3 Jun 2016 15:25:43 -0700 Subject: [PATCH] Provide our own psqlscan.l->psqlscan.l rule. As postgres's generic .l -> .c Makefile rule uses ifdef - which is evaluated early, not during rule evaluation - we have to override the rule, in addition to the detection of FLEX in the previous commit. Fixes: #439 --- src/bin/csql/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/csql/Makefile b/src/bin/csql/Makefile index d444c535e..470031999 100644 --- a/src/bin/csql/Makefile +++ b/src/bin/csql/Makefile @@ -36,7 +36,9 @@ override CPPFLAGS := -I$(client_includes) -I$(libpq_srcdir) -I$(citus_abs_top_sr # psqlscan is compiled as part of mainloop mainloop.o: psqlscan.c psqlscan.c: FLEXFLAGS = -Cfe -p -p -psqlscan.c: FLEX_NO_BACKUP=yes + +psqlscan.c: psqlscan.l + $(FLEX) $(FLEXFLAGS) -o'$@' $< clean: csql-clean csql-clean: