From c41c5f4e46ff8da87de593e581ac9ed27b42504b Mon Sep 17 00:00:00 2001 From: Keun young Park Date: Wed, 30 May 2012 10:22:29 -0700 Subject: [PATCH] add add-to-product-copy-files-if-exists for pdk Change-Id: Ib35006824de81be31652bfff220bbe4e814869ce --- core/product.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/product.mk b/core/product.mk index b001ca2c8..d9e418603 100644 --- a/core/product.mk +++ b/core/product.mk @@ -272,3 +272,7 @@ $(strip \ $(eval $(error The following variables have been changed: $(changed_variables))),) ) endef + +define add-to-product-copy-files-if-exists +$(if $(wildcard $(word 1,$(subst :, ,$(1)))),$(1)) +endef