reports.mk: generate targets.svgz instead targets.png

SVGZ is more than a hundred times smaller than PNG.
a
This commit is contained in:
Anton Midyukov 2021-04-29 21:26:51 +07:00
parent 1d8b9f494d
commit f9ef0e95f7

View File

@ -54,9 +54,9 @@ reports/targets: reports/prep
exit 0; \
fi; \
if type -t dot >&/dev/null; then \
OUT="$(REPORTDIR)/$(@F).png"; \
OUT="$(REPORTDIR)/$(@F).svgz"; \
report-targets < "$(REPORT_PATH)" \
| dot -Tpng -o "$$OUT" \
| dot -Tsvgz -o "$$OUT" \
&& $(call report,target graph report); \
else \
OUT="$(BUILDDIR)/targets.dot"; \