build-with-colors: moar colors
- rename CL_PFX and CL_INS to better match the
colors they show.
- add more colors.
Output of:
- most host stuff is yellow
- most target stuff is green
- installing/copying files is cyan
- import/export includes and notice files is cyan
- bootimage/recoveryimage is cyan
- and some more colors in many places ;)
Change-Id: I5532afa4ba608e0a7c408516dc9f912f9ca389f7
diff --git a/core/java.mk b/core/java.mk
index bac5ca7..3dc8ffc 100644
--- a/core/java.mk
+++ b/core/java.mk
@@ -358,7 +358,7 @@
# PRIVATE_ vars to be preserved.
$(full_classes_stubs_jar): PRIVATE_SOURCE_FILE := $(full_classes_jar)
$(full_classes_stubs_jar) : $(full_classes_jar) | $(ACP)
- @echo Copying $(PRIVATE_SOURCE_FILE)
+ @echo -e ${CL_GRN}"Copying"${CL_RST}" $(PRIVATE_SOURCE_FILE)"
$(hide) $(ACP) -fp $(PRIVATE_SOURCE_FILE) $@
ALL_MODULES.$(LOCAL_MODULE).STUBS := $(full_classes_stubs_jar)
@@ -399,11 +399,11 @@
ifneq ($(strip $(LOCAL_JARJAR_RULES)),)
$(full_classes_jarjar_jar): PRIVATE_JARJAR_RULES := $(LOCAL_JARJAR_RULES)
$(full_classes_jarjar_jar): $(full_classes_compiled_jar) $(LOCAL_JARJAR_RULES) | $(JARJAR)
- @echo JarJar: $@
+ @echo -e ${CL_GRN}"JarJar:"${CL_RST}" $@"
$(hide) java -jar $(JARJAR) process $(PRIVATE_JARJAR_RULES) $< $@
else
$(full_classes_jarjar_jar): $(full_classes_compiled_jar) | $(ACP)
- @echo Copying: $@
+ @echo -e ${CL_GRN}"Copying:"${CL_RST}" $@"
$(hide) $(ACP) -fp $< $@
endif
@@ -426,13 +426,13 @@
else
$(full_classes_emma_jar): $(full_classes_jarjar_jar) | $(ACP)
- @echo Copying: $@
+ @echo -e ${CL_GRN}"Copying:"${CL_RST}" $@"
$(copy-file-to-target)
endif
# Keep a copy of the jar just before proguard processing.
$(full_classes_jar): $(full_classes_emma_jar) | $(ACP)
- @echo Copying: $@
+ @echo -e ${CL_GRN}"Copying:"${CL_GRN}" $@"
$(hide) $(ACP) -fp $< $@
# Run proguard if necessary, otherwise just copy the file.
@@ -561,7 +561,7 @@
endif # LOCAL_JACK_ENABLED is disabled
$(built_dex): $(built_dex_intermediate) | $(ACP)
- @echo Copying: $@
+ @echo -e ${CL_GRN}"Copying:"${CL_RST}" $@"
$(hide) mkdir -p $(dir $@)
$(hide) rm -f $(dir $@)/classes*.dex
$(hide) $(ACP) -fp $(dir $<)/classes*.dex $(dir $@)