From f03fc94e7df1078959a4fa4a4b5c4e02b09a2bc1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 28 Aug 2000 11:53:23 +0000 Subject: New configure test for flex, which recognizes only flex but does so in all incarnations (I hope). When an acceptable flex version is not found, print instructive error messages from both configure and the makefiles, so that users can continue building anyway. --- src/interfaces/ecpg/preproc/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/interfaces') diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile index 48ab51d5353..bba2ecdeb7e 100644 --- a/src/interfaces/ecpg/preproc/Makefile +++ b/src/interfaces/ecpg/preproc/Makefile @@ -32,8 +32,11 @@ $(srcdir)/preproc.c $(srcdir)/preproc.h: preproc.y mv y.tab.h $(srcdir)/preproc.h $(srcdir)/pgc.c: pgc.l - $(LEX) $(LFLAGS) $< - mv lex.yy.c $@ +ifdef FLEX + $(FLEX) $(FLEXFLAGS) -o'$@' $< +else + @$(missing) flex $< $@ +endif distprep: $(srcdir)/preproc.c $(srcdir)/preproc.h $(srcdir)/pgc.c @@ -49,7 +52,7 @@ uninstall: clean distclean: rm -f *.o ecpg$(X) # garbage from partial builds - rm -f y.tab.c y.tab.h lex.yy.c + @rm -f y.tab.c y.tab.h # garbage from development @rm -f core a.out *~ *.output *.tab.c -- cgit v1.2.3