This recipe will equip you with some of the lesser known make
command options.
The following table lists the command options for the standard make:
Command |
Purpose |
---|---|
|
Builds the SDK |
|
Builds system image from currently available binaries |
|
Creates the services JAR that contains all system services |
|
Builds native code which serves as the glue between the Java-based Android framework and native stuff used for its functionality |
|
The default make |
|
Shows a list of all modules that can be built by using |
|
Completely clears all compiled files |
|
Same as |
|
Only cleans up any built files for |
These commands can be regularly used for several tasks during development. As an example, suppose I want to rebuild the Android framework and push it to the emulator, I can use the following sequence of commands written as a shell script:
You can save this build file as mk_frmwrk.sh
:
#!/bin/sh mmm -j4 frameworks/base frameworks/base/core/res snod adb shell stop adb sync adb shell start
This will recompile the framework code, recompile the resources, rebuild system.img
and sync it to the currently connected device.
18.227.0.192