diff options
Diffstat (limited to 'build/meta/vc9proj-functions.make')
-rw-r--r-- | build/meta/vc9proj-functions.make | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/build/meta/vc9proj-functions.make b/build/meta/vc9proj-functions.make index 8329230..5b6905a 100644 --- a/build/meta/vc9proj-functions.make +++ b/build/meta/vc9proj-functions.make @@ -8,14 +8,17 @@ # # Arguments: # -# $1 - template path +# $1 - template path, if doesn't start with /, assume relative to src_base +# $2 - output name (optional) # $(out_base)/%: meta-vc9proj = \ -$(call meta-vc9proj-body,$1,$(subst $(src_root),,$(src_base))) +$(call meta-vc9proj-body,$(if $(filter /%,$1),$1,$(src_base)/$1),$(if \ +$2,$2,$(notdir $1)),$(subst $(src_root),,$(src_base))) # $1 - template -# $2 - difference between src_base and src_root with leading '\' +# $2 - output name +# $3 - difference between src_base and src_root with leading '\' # $(out_base)/%: meta-vc9proj-body = \ -$(call message,meta $(dist_prefix)$2/$(notdir $1),$(bld_root)/meta/vc9proj \ --o $(dist_prefix)$2/$(notdir $1) $1) +$(call message,meta $(dist_prefix)$3/$2,$(bld_root)/meta/vc9proj \ +-o $(dist_prefix)$3/$2 $1) |