Add dependencies between generated ANTLR classes
This ensures that the ANTLR generation tasks happen in the correct order
Change-Id: I995319b94bc2e547fb82fe2cf045262fdc7dfff9
Signed-off-by: Ben Gruver <bgruv@google.com>
diff --git a/smali/Android.mk b/smali/Android.mk
index b48d034..dac88a4 100644
--- a/smali/Android.mk
+++ b/smali/Android.mk
@@ -37,6 +37,9 @@
ANTLR_JAR = $(call java-lib-deps,antlr,true)
+$(intermediates)/smaliTreeWalker.java: $(intermediates)/smaliParser.java $(intermediates)/smaliLexer.java
+$(intermediates)/smaliParser.java: $(intermediates)/smaliLexer.java
+
$(GEN): $(ANTLR_JAR)
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
$(GEN): PRIVATE_CUSTOM_TOOL = java -jar $(ANTLR_JAR) -fo $(dir $@) $<