-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (17 loc) · 937 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FRAGMENTS = logo-color logo-white logo-black logo-circle-color sticker
FRAGMENTS_PNG = $(patsubst %,%.png,$(FRAGMENTS))
FRAGMENTS_PNG_600 = $(patsubst %,%-600.png,$(FRAGMENTS))
FRAGMENTS_SVG = $(patsubst %,%.svg,$(FRAGMENTS))
all: $(FRAGMENTS_PNG) $(FRAGMENTS_PNG_600) $(FRAGMENTS_SVG) brandbook.png favicon.ico
brandbook.png: Makefile brandbook.svg
inkscape -z brandbook.svg --export-png=brandbook.png
$(FRAGMENTS_PNG): Makefile brandbook.svg
inkscape -z brandbook.svg -i $(patsubst %.png,%,$@) --export-png=$@
$(FRAGMENTS_PNG_600): Makefile brandbook.svg
inkscape -z brandbook.svg -i $(patsubst %-600.png,%,$@) -d 600 --export-png=$@
$(FRAGMENTS_SVG): Makefile brandbook.svg
inkscape -z brandbook.svg -i $(patsubst %.svg,%,$@) -j --export-plain-svg=$@
favicon.ico: Makefile logo-color.svg
convert -density 384 logo-color.svg -define icon:auto-resize favicon.ico
clean:
rm $(FRAGMENTS_PNG) $(FRAGMENTS_SVG) brandbook.png