-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
41 lines (29 loc) · 1.11 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
INKSCAPE=inkscape
MARM = java -jar submodules/marm/marm_app.jar hiero=libs/bin/hiero -v
##
all: icons marm
icons:
cd android/res/ && mkdir -p drawable-ldpi drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi
$(INKSCAPE) extra/icon.svg -w 36 -h 36 -o android/res/drawable-ldpi/ic_launcher.png
$(INKSCAPE) extra/icon.svg -w 48 -h 48 -o android/res/drawable-mdpi/ic_launcher.png
$(INKSCAPE) extra/icon.svg -w 72 -h 72 -o android/res/drawable-hdpi/ic_launcher.png
$(INKSCAPE) extra/icon.svg -w 96 -h 96 -o android/res/drawable-xhdpi/ic_launcher.png
$(INKSCAPE) extra/icon.svg -w 144 -h 144 -o android/res/drawable-xxhdpi/ic_launcher.png
$(INKSCAPE) extra/icon.svg -w 192 -h 192 -o android/res/drawable-xxxhdpi/ic_launcher.png
marm:
-cd android/assets && rm -rf 1 2 4
$(MARM) resize extra/assets android/assets
##
run:
./gradlew desktop:run
install:
./gradlew installDebug
##
clean:
rm -rf android/assets/1
rm -rf $(CLEAN_ADD)
rm -rf android/res/drawable-*/ic_launcher.png
- cd submodules/marm && ant clean
setup:
git submodule update --init --recursive
cd submodules/marm && ant dist