Rework ANTLR3 integration into the build system
This commit is contained in:
parent
e23f02c7c0
commit
7927707bdb
|
@ -105,9 +105,6 @@ EXTRA_DIST = \
|
||||||
CLEANFILES = \
|
CLEANFILES = \
|
||||||
$(GPERF_PRODUCTS)
|
$(GPERF_PRODUCTS)
|
||||||
|
|
||||||
# Let's help the dependencies a little.
|
|
||||||
rsp_query.c: RSPLexer.h RSPParser.h RSP2SQL.h
|
|
||||||
daap_query.c: DAAPLexer.h DAAPParser.h DAAP2SQL.h
|
|
||||||
|
|
||||||
# gperf construction rules
|
# gperf construction rules
|
||||||
%_hash.c: %.gperf
|
%_hash.c: %.gperf
|
||||||
|
@ -135,14 +132,17 @@ SUFFIXES = .g .u
|
||||||
@cat $@.tmp >> $@
|
@cat $@.tmp >> $@
|
||||||
@rm $@.tmp
|
@rm $@.tmp
|
||||||
|
|
||||||
clean-local:
|
BUILT_SOURCES += $(ANTLR_SOURCES)
|
||||||
rm -f $(ANTLR_PRODUCTS)
|
|
||||||
rm -f $(ANTLR_GRAMMARS:.g=.u)
|
CLEANFILES += \
|
||||||
|
$(ANTLR_PRODUCTS) \
|
||||||
|
$(ANTLR_GRAMMARS:.g=.u)
|
||||||
|
|
||||||
else !COND_ANTLR
|
else !COND_ANTLR
|
||||||
distclean-local:
|
DISTCLEANFILES = \
|
||||||
rm -f $(ANTLR_SOURCES)
|
$(ANTLR_PRODUCTS) \
|
||||||
rm -f $(ANTLR_GRAMMARS:.g=.u)
|
$(ANTLR_GRAMMARS:.g=.u)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
-include $(ANTLR_GRAMMARS:.g=.u)
|
-include $(ANTLR_GRAMMARS:.g=.u)
|
||||||
|
|
Loading…
Reference in New Issue