-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 800 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (25 loc) · 800 Bytes
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
31
32
33
34
35
inventory_json := inventory.json
apps := $(shell jq -r '"app-" + keys[]' $(inventory_json))
# Don't autoremove any intermediate files; they should be cached.
.SECONDARY:
.PHONY: clean
all: $(apps)
clean:
rm -rf build dist
$(apps): app-% : \
dist/icon/24x24/%.png \
dist/icon/96x96/%.png
build/platforms/android:
mkdir -p $@
build/platforms/android/%.png: static/android/%.png | build/platforms/android
cp $< $@
dist/icon/24x24:
mkdir -p $@
dist/icon/24x24/%.png: build/platforms/android/%.png | dist/icon/24x24
gm convert $< -resize 24x24 $@
pngcrush -q -brute $@ $@.crushed && mv $@.crushed $@
dist/icon/96x96:
mkdir -p $@
dist/icon/96x96/%.png: build/platforms/android/%.png | dist/icon/96x96
gm convert $< -resize 96x96 $@
pngcrush -q -brute $@ $@.crushed && mv $@.crushed $@