diff options
Diffstat (limited to 'build/meta/automake-functions.make')
-rw-r--r-- | build/meta/automake-functions.make | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/meta/automake-functions.make b/build/meta/automake-functions.make index 114779f..84627e0 100644 --- a/build/meta/automake-functions.make +++ b/build/meta/automake-functions.make @@ -8,10 +8,12 @@ # # Arguments: # -# $1 - optional template, default is $(src_base)/Makefile.am +# $1 - optional template path, if doesn't start with /, assume relative +# to src_base default is $(src_base)/Makefile.am # $(out_base)/%: meta-automake = \ -$(call meta-automake-body,$(if $1,$1,$(src_base)/Makefile.am),$(subst \ +$(call meta-automake-body,$(if $1,$(if $(filter \ +/%,$1),$1,$(src_base)/$1),$(src_base)/Makefile.am),$(subst \ $(src_root),,$(src_base))) # $1 - template |