Use $(ANTLR) variable instead of substitution to invoke ANTLR

This makes it possible to override the value when calling make.
This commit is contained in:
Julien BLACHE 2010-06-26 12:20:49 +02:00
parent bedc8fb68c
commit 65d365197a

View File

@ -83,10 +83,10 @@ daap_query.c: DAAPLexer.h DAAPParser.h DAAP2SQL.h
SUFFIXES = .g .u
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
@ANTLR@ $(ANTLR_OPTIONS) $<
$(ANTLR) $(ANTLR_OPTIONS) $<
%.u: %.g
@ANTLR@ -depend $< > $@
$(ANTLR) -depend $< > $@
@echo -n "ANTLR_PRODUCTS += " > $@.tmp
@grep : $@ | cut -d : -f 1 | tr -d ' ' | { while read f; do test "$$f" != "$<" && echo -n "$$f "; done } >> $@.tmp
@cat $@.tmp >> $@