diff options
author | Ying Wang <wangying@google.com> | 2013-02-19 16:42:16 -0800 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2013-02-19 16:42:16 -0800 |
commit | 33c29b0e16a98753aecad894cbc344a87a6307a5 (patch) | |
tree | 1ea25e19fe365591e86513617833f56a6519d3c4 /cmds/am | |
parent | f9b9ead5d4f7bee34ec8a6b083065b624a7f6809 (diff) | |
download | frameworks_base-33c29b0e16a98753aecad894cbc344a87a6307a5.zip frameworks_base-33c29b0e16a98753aecad894cbc344a87a6307a5.tar.gz frameworks_base-33c29b0e16a98753aecad894cbc344a87a6307a5.tar.bz2 |
Use BUILD_PREBUILT to install the shell script
NOTICE files will be picked up automatically.
Change-Id: Ia4938aff013f1c010cbbfceacf5685722c86c39a
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/Android.mk | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/cmds/am/Android.mk b/cmds/am/Android.mk index 8b321b3..f8350dc 100644 --- a/cmds/am/Android.mk +++ b/cmds/am/Android.mk @@ -1,31 +1,15 @@ # Copyright 2008 The Android Open Source Project # LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) +include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_MODULE := am include $(BUILD_JAVA_LIBRARY) include $(CLEAR_VARS) -ALL_PREBUILT += $(TARGET_OUT)/bin/am -$(TARGET_OUT)/bin/am : $(LOCAL_PATH)/am | $(ACP) - $(transform-prebuilt-to-target) - -NOTICE_FILE := NOTICE -files_noticed := bin/am - -# Generate rules for a single file. The argument is the file path relative to -# the installation root -define make-notice-file - -$(TARGET_OUT_NOTICE_FILES)/src/$(1).txt: $(LOCAL_PATH)/$(NOTICE_FILE) - @echo Notice file: $$< -- $$@ - @mkdir -p $$(dir $$@) - @cat $$< >> $$@ - -$(TARGET_OUT_NOTICE_FILES)/hash-timestamp: $(TARGET_OUT_NOTICE_FILES)/src/$(1).txt - -endef - -$(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file)))) +LOCAL_MODULE := am +LOCAL_SRC_FILES := am +LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_MODULE_TAGS := optional +include $(BUILD_PREBUILT) |