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