Wildcard in extra outputs
Suppose I'm building tests for gcov, generating executable without hassle. Then I want to generate HTML report using gcovr:
: BuildTest/my_test.exe |> \
python ./scripts/gcovr ./BuildTest $(GCOV_OPTS) -o %o |> CoverageHtml/coverage.html
Problem is, gcovr generates lotsa files using pattern: coverage.fileName_o.html. So I thought being able to write following would be cool:
: BuildTest/my_test.exe |> \
python ./scripts/gcovr ./BuildTest $(GCOV_OPTS) -o %o |> CoverageHtml/coverage.html | CoverageHtml/coverage.*.html
or some other means to avoid writing 100+ extra files and updating this rule manually every now and then. ;)
I'm on windows, if it means anything.
AFAIK that's not possible (at least right now). Depending on your workflow, it might be feasible to have the output files zipped together, especially since Windows Explorer (at least on Windows 10) can open ZIP files natively. You would just need to wrap the coverage report generation in a script that zipped the output files together, deleting them afterwards.
Is there will to adopt such a feature in tup if someone contributed an implementation? Or wildcard outputs don't fit into tup's design?
there's regex support added as described here: https://github.com/gittup/tup/issues/182#issuecomment-425518883 . Perhaps it'd fix things for me, I'll test it later.