mirror of
https://github.com/daylinmorgan/logo.git
synced 2024-12-21 22:10:45 -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
|
||||
@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=$@ $<
|
||||
|
||||
|
|
Loading…
Reference in a new issue