Allow use of pre-generated ANTLR3 parsers when antlr3 is not available

This commit is contained in:
Julien BLACHE
2010-09-04 12:57:10 +02:00
parent dd6fd6ceec
commit 0137b202f0
2 changed files with 16 additions and 11 deletions

View File

@@ -79,7 +79,8 @@ EXTRA_DIST = \
rsp_query.c: RSPLexer.h RSPParser.h RSP2SQL.h
daap_query.c: DAAPLexer.h DAAPParser.h DAAP2SQL.h
# Support for building the parsers when ANTLR3 is available
if COND_ANTLR
SUFFIXES = .g .u
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
@@ -96,4 +97,10 @@ clean-local:
rm -f $(ANTLR_PRODUCTS)
rm -f $(ANTLR_GRAMMARS:.g=.u)
else !COND_ANTLR
distclean-local:
rm -f $(ANTLR_SOURCES)
rm -f $(ANTLR_GRAMMARS:.g=.u)
endif
-include $(ANTLR_GRAMMARS:.g=.u)