mirror of
https://github.com/daylinmorgan/logo.git
synced 2024-12-22 06:20:44 -06:00
feat: make png version have unique title
This commit is contained in:
parent
e64ae6ee53
commit
05bbe6cd26
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -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=$@ $<
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue