OSDN Git Service

AI 147382: am: CL 147379 copy pdk templates sub-directories also.
authorMike Ritter <>
Wed, 22 Apr 2009 20:44:21 +0000 (13:44 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Wed, 22 Apr 2009 20:44:21 +0000 (13:44 -0700)
  Original author: mritter
  Merged from: //branches/cupcake/...

Automated import of CL 147382

pdk/Pdk.mk

index 584eccf..29a08a3 100644 (file)
@@ -101,7 +101,7 @@ pdk_templates := $(shell find $(pdk_templates_dir) -type f)
 # copy-one-file defines the actual rule.
 $(foreach template,$(pdk_templates), \
   $(eval _chFrom := $(template)) \
-  $(eval _chTo :=  $(pdk_docs_dest_dir)/$(notdir $(template))) \
+  $(eval _chTo :=  $(pdk_docs_dest_dir)/$(patsubst $(pdk_templates_dir)/%,%,$(template))) \
   $(eval $(call copy-one-header,$(_chFrom),$(_chTo))) \
   $(eval all_copied_pdk_templates: $(_chTo)) \
  )