diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2015-06-17 06:44:52 +0800 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2015-07-20 18:31:36 +0800 |
commit | 5df1dccafaa702752d4f29aba6230c95dd8efa2d (patch) | |
tree | e7b39489e7775c147a46ee2492d388ec0ee2a616 | |
parent | 26799f4fb24c0d63a463f3e707f4ee18dea9ddee (diff) |
eos-coverage: Explicitly put source directory before filename
Just using $(abspath $(p)) might lead to odd results where we're
not in the source directory, which is the case with distcheck.
[endlessm/eos-sdk#3303]
-rw-r--r-- | m4/eos-coverage.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/eos-coverage.m4 b/m4/eos-coverage.m4 index 0d3c178..b21e3da 100644 --- a/m4/eos-coverage.m4 +++ b/m4/eos-coverage.m4 @@ -350,7 +350,7 @@ _eos_coverage_outputs += $(_eos_js_coverage_data_output_file) # cond evalutes to a non-empty string. The documentation on this # point suggests that conditional operators can be used. This is # misleading. - EOS_JS_COVERAGE_LOG_FLAGS='$(addprefix --coverage-prefix=,$(foreach p,$(filter-out $(subst */,,$(EOS_COVERAGE_BLACKLIST_PATTERNS)),$(filter-out $(subst *,%,$(EOS_COVERAGE_BLACKLIST_PATTERNS)),$(EOS_JS_COVERAGE_FILES))),$(if $(filter resource,$(firstword $(subst :, ,$(p)))),$(p),$(abs_top_srcdir)/$(p)))) --coverage-output=$(_eos_js_coverage_trace_path)' + EOS_JS_COVERAGE_LOG_FLAGS='$(addprefix --coverage-prefix=,$(foreach p,$(filter-out $(subst */,,$(EOS_COVERAGE_BLACKLIST_PATTERNS)),$(filter-out $(subst *,%,$(EOS_COVERAGE_BLACKLIST_PATTERNS)),$(EOS_JS_COVERAGE_FILES))),$(if $(filter resource,$(firstword $(subst :, ,$(p)))),$(p),$(abspath $(abs_top_srcdir)/$(p))))) --coverage-output=$(_eos_js_coverage_trace_path)' ], [ EOS_JS_COVERAGE_RULES='' ]) |