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

View file

@ -12,13 +12,20 @@ all:
@$(MAKE) svgs @$(MAKE) svgs
@echo "==> Generating PNGs <==" @echo "==> Generating PNGs <=="
@mkdir -p docs/png @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 @$(MAKE) pngs
.PHONY: pngs .PHONY: pngs
## generate all of the logo pngs ## generate all of the logo pngs
pngs: $(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 docs/png/%.png: docs/svg/%.svg
@inkscape --export-filename=$@ $< @inkscape --export-filename=$@ $<