1# -*- mode: makefile -*- 2# Copyright (C) 2015 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16LOCAL_PATH := $(call my-dir) 17 18cacerts_google := $(call all-files-under,files) 19 20cacerts_google_target_directory := $(TARGET_OUT)/etc/security/cacerts_google 21$(foreach cacert, $(cacerts_google), $(eval $(call include-prebuilt-with-destination-directory,target-cacert-google-$(notdir $(cacert)),$(cacert),$(cacerts_google_target_directory)))) 22cacerts_google_target := $(addprefix $(cacerts_google_target_directory)/,$(foreach cacert,$(cacerts_google),$(notdir $(cacert)))) 23.PHONY: cacerts_google_target 24cacerts_google: $(cacerts_google_target) 25 26# This is so that build/target/product/core.mk can use cacerts_google in PRODUCT_PACKAGES 27ALL_MODULES.cacerts_google.INSTALLED := $(cacerts_google_target) 28 29cacerts_google_host_directory := $(HOST_OUT)/etc/security/cacerts_google 30$(foreach cacert, $(cacerts_google), $(eval $(call include-prebuilt-with-destination-directory,host-cacert-google-$(notdir $(cacert)),$(cacert),$(cacerts_google_host_directory)))) 31 32cacerts_google_host := $(addprefix $(cacerts_google_host_directory)/,$(foreach cacert,$(cacerts_google),$(notdir $(cacert)))) 33.PHONY: cacerts_google-host 34cacerts_google-host: $(cacerts_google_host) 35