summaryrefslogtreecommitdiffstats
path: root/cmds/wm/Android.mk
blob: a255cae4214f692502641bb252b2026c7abe031b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright 2013 The Android Open Source Project
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_MODULE := wm
include $(BUILD_JAVA_LIBRARY)

include $(CLEAR_VARS)

NOTICE_FILE := NOTICE
files_noticed := bin/wm

# 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))))