diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-08-28 11:53:23 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-08-28 11:53:23 +0000 |
| commit | f03fc94e7df1078959a4fa4a4b5c4e02b09a2bc1 (patch) | |
| tree | 1aadad9c51a781f608d1820000a4478dbf00aa83 /src/interfaces/ecpg/preproc/Makefile | |
| parent | 4c8d2f7f7b129d8fd679bb970345593ac6190725 (diff) | |
| download | postgresql-f03fc94e7df1078959a4fa4a4b5c4e02b09a2bc1.tar.gz | |
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.
Diffstat (limited to 'src/interfaces/ecpg/preproc/Makefile')
| -rw-r--r-- | src/interfaces/ecpg/preproc/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile index 48ab51d535..bba2ecdeb7 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 |
