Android.mk revision c652de8141f5b8e3c6bcf8916842b6e106413b1a
1# Copyright 2013 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 := wm
8include $(BUILD_JAVA_LIBRARY)
9
10include $(CLEAR_VARS)
11
12NOTICE_FILE := NOTICE
13files_noticed := bin/wm
14
15# Generate rules for a single file. The argument is the file path relative to
16# the installation root
17define make-notice-file
18
19$(TARGET_OUT_NOTICE_FILES)/src/$(1).txt: $(LOCAL_PATH)/$(NOTICE_FILE)
20	@echo Notice file: $$< -- $$@
21	@mkdir -p $$(dir $$@)
22	@cat $$< >> $$@
23
24$(TARGET_OUT_NOTICE_FILES)/hash-timestamp: $(TARGET_OUT_NOTICE_FILES)/src/$(1).txt
25
26endef
27
28$(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file))))
29