1 # Copyright 2008 The Android Open Source Project 2 # 3 LOCAL_PATH:= $(call my-dir) 4 include $(CLEAR_VARS) 5 6 LOCAL_SRC_FILES := $(call all-subdir-java-files) 7 LOCAL_MODULE := am 8 include $(BUILD_JAVA_LIBRARY) 9 10 include $(CLEAR_VARS) 11 ALL_PREBUILT += $(TARGET_OUT)/bin/am 12 $(TARGET_OUT)/bin/am : $(LOCAL_PATH)/am | $(ACP) 13 $(transform-prebuilt-to-target) 14 15 NOTICE_FILE := NOTICE 16 files_noticed := bin/am 17 18 # Generate rules for a single file. The argument is the file path relative to 19 # the installation root 20 define make-notice-file 21 22 $(TARGET_OUT_NOTICE_FILES)/src/$(1).txt: $(LOCAL_PATH)/$(NOTICE_FILE) 23 @echo Notice file: $$< -- $$@ 24 @mkdir -p $$(dir $$@) 25 @cat $$< >> $$@ 26 27 $(TARGET_OUT_NOTICE_FILES)/hash-timestamp: $(TARGET_OUT_NOTICE_FILES)/src/$(1).txt 28 29 endef 30 31 $(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file)))) 32