mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-09 12:48:09 -05:00
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:
parent
bedc8fb68c
commit
65d365197a
@ -83,10 +83,10 @@ daap_query.c: DAAPLexer.h DAAPParser.h DAAP2SQL.h
|
|||||||
SUFFIXES = .g .u
|
SUFFIXES = .g .u
|
||||||
|
|
||||||
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
|
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
|
||||||
@ANTLR@ $(ANTLR_OPTIONS) $<
|
$(ANTLR) $(ANTLR_OPTIONS) $<
|
||||||
|
|
||||||
%.u: %.g
|
%.u: %.g
|
||||||
@ANTLR@ -depend $< > $@
|
$(ANTLR) -depend $< > $@
|
||||||
@echo -n "ANTLR_PRODUCTS += " > $@.tmp
|
@echo -n "ANTLR_PRODUCTS += " > $@.tmp
|
||||||
@grep : $@ | cut -d : -f 1 | tr -d ' ' | { while read f; do test "$$f" != "$<" && echo -n "$$f "; done } >> $@.tmp
|
@grep : $@ | cut -d : -f 1 | tr -d ' ' | { while read f; do test "$$f" != "$<" && echo -n "$$f "; done } >> $@.tmp
|
||||||
@cat $@.tmp >> $@
|
@cat $@.tmp >> $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user