blob: 8b321b3236155e65dd2cff92735728f938bbe26b [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001# Copyright 2008 The Android Open Source Project
2#
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6LOCAL_SRC_FILES := $(call all-subdir-java-files)
7LOCAL_MODULE := am
8include $(BUILD_JAVA_LIBRARY)
9
10include $(CLEAR_VARS)
11ALL_PREBUILT += $(TARGET_OUT)/bin/am
12$(TARGET_OUT)/bin/am : $(LOCAL_PATH)/am | $(ACP)
13 $(transform-prebuilt-to-target)
14
David Deephanphongs62f2ada2010-10-19 14:54:05 -070015NOTICE_FILE := NOTICE
16files_noticed := bin/am
17
18# Generate rules for a single file. The argument is the file path relative to
19# the installation root
20define 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
29endef
30
31$(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file))))