最終更新:2015-12-17 (木) 15:27:15 (3025d)
Android/make
スクリプト
AOSP/Makefile
- include AOSP/build/core/main.mk
AOSP/build/core/main.mk
- inclue AOSP/build/core/help.mk
- inclue AOSP/build/core/config.mk
- inclue AOSP/build/core/cleanbuild.mk?
- inclue AOSP/vendor/google/build/config.mk?
- versions_checked.mk
- inclue AOSP/build/core/definitions.mk?
- inclue AOSP/build/core/dex_preopt.mk?
- inclue AOSP/build/core/pdk_config.mk?
- inclue AOSP/build/core/post_clean.mk?
- inclue AOSP/build/core/legacy_prebuilts.mk?
make help
droid Default target clean (aka clobber) equivalent to rm -rf out/ snod Quickly rebuild the system image from built packages offline-sdk-docs Generate the HTML for the developer SDK docs doc-comment-check-docs Check HTML doc links & validity, without generating HTML libandroid_runtime All the JNI framework stuff framework All the java framework stuff services The system server (Java) and friends help You're reading it right now
make droid?
- make droid? is the normal build. This target is here because the default target has to have a name.
make all?
- make all builds everything make droid does, plus everything whose LOCAL_MODULE_TAGS do not include the "droid" tag.
- The build server runs this to make sure that everything that is in the tree and has an Android.mk builds.
make clean
- make clean deletes all of the output and intermediate files for this configuration. This is the same as rm -rf out/<configuration>/
make clobber?
- make clobber deletes all of the output and intermediate files for all configurations. This is the same as rm -rf out/. dataclean - make dataclean deletes contents of the data directory inside the current combo directory. This is especially useful on the simulator and emulator, where the persistent data remains present between builds.
make showcommands
$ make -j4 showcommands
- showcommands is a modifier target which causes the build system to show the actual command lines for the build steps, instead of the brief descriptions.
- Most people don't like seeing the actual commands, because they're quite long and hard to read, but if you need to for debugging purposes, you can add showcommands to the list of targets you build.
- For example make showcommands will build the default android configuration, and make runtime showcommands will build just the runtime, and targets that it depends on, while displaying the full command lines.
- Please note that there are a couple places where the commands aren't shown here. These are considered bugs, and should be fixed, but they're often hard to track down. Please let android-build-team know if you find any.
make targets?
- make targets will print a list of all of the LOCAL_MODULE names you can make.
make: *** No rule to make target `targets'. Stop.