-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (26 loc) · 826 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
26
27
28
29
30
ICONIDS := $(shell sed -n '/id=/p' bookmarks/static/icons.svg |grep translate | sed 's/.*id="\([^"]\+\)".*/\1/')
all: icons
icons: bookmarks/static/icons.svg
tools/create_icons.sh --half '#e60042'
tools/create_icons.sh --half '#ffffff'
tools/create_icons.sh --half '#95002b'
tools/create_icons.sh --half '#ff9fbc'
for item in $(ICONIDS); do \
montage -background transparent -tile 1x10 -geometry 12x12 \
bookmarks/static/$$item.e60042.png \
NULL: \
NULL: \
bookmarks/static/$$item.ffffff.png \
NULL: \
NULL: \
bookmarks/static/$$item.95002b.png \
NULL: \
NULL: \
bookmarks/static/$$item.ff9fbc.png \
bookmarks/static/$$item.png; \
optipng -o7 bookmarks/static/$$item.png; \
done
rm -f bookmarks/static/*.*.png
.PHONY: clean icons
clean:
rm -f bookmarks/static/*.png