Add missing NOTICE block for TagSoup in general NOTICE file. Add comment in Android.mk to help reviewers locate the NOTICE for apache-http. Modify build rule for 'am' command to pull in the NOTICE file. Change-Id: I43c6c1468395b70d0942b3620f12e4b6f3d9a66b
32 lines
824 B
Makefile
32 lines
824 B
Makefile
# Copyright 2008 The Android Open Source Project
|
|
#
|
|
LOCAL_PATH:= $(call my-dir)
|
|
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))))
|