1kati 2==== 3 4[](http://travis-ci.org/google/kati) 5 6kati is an experimental GNU make clone. 7The main goal of this tool is to speed-up incremental build of Android. 8 9Currently, kati does not offer a faster build by itself. It instead converts 10your Makefile to a ninja file. 11 12How to use for Android 13---------------------- 14 15Now AOSP has kati and ninja, so all you have to do is 16 17 % export USE_NINJA=true 18 19All Android's build commands (m, mmm, mmma, etc.) should just work. 20 21How to use for Android (deprecated way) 22---------------------- 23 24Set up kati: 25 26 % cd ~/src 27 % git clone https://github.com/google/kati 28 % cd kati 29 % make 30 31Build Android: 32 33 % cd <android-directory> 34 % source build/envsetup.sh 35 % lunch <your-choice> 36 % ~/src/kati/m2n --kati_stats # Use --goma if you are a Googler. 37 % ./ninja.sh 38 39You need ninja in your $PATH. 40 41More usage examples (deprecated way) 42------------------- 43 44### "make clean" 45 46 % ./ninja.sh -t clean 47 48Note ./ninja.sh passes all parameters to ninja. 49 50### Build a specific target 51 52For example, the following is equivalent to "make cts": 53 54 % ./ninja.sh cts 55 56Or, if you know the path you want, you can do: 57 58 % ./ninja.sh out/host/linux-x86/bin/adb 59