feat: make png version have unique title

This commit is contained in:
Daylin Morgan 2022-08-13 13:50:11 -05:00
parent e64ae6ee53
commit 05bbe6cd26
1 changed files with 8 additions and 1 deletions

View File

@ -12,13 +12,20 @@ all:
@$(MAKE) svgs
@echo "==> Generating PNGs <=="
@mkdir -p docs/png
@cat docs/index.html | sed 's/svg/png/g' | sed 's/\.\/png/\./g' > docs/png/index.html
@$(MAKE) docs/png/index.html
@$(MAKE) pngs
.PHONY: pngs
## generate all of the logo pngs
pngs: $(PNGS)
docs/png/index.html: docs/index.html
@cat docs/index.html |\
sed 's/svg/png/g' |\
sed 's/\.\/png/\./g' |\
sed s'/My Logos/My Logos but PNG/g' \
> docs/png/index.html
docs/png/%.png: docs/svg/%.svg
@inkscape --export-filename=$@ $<