Skip to content

Commit

Permalink
chore: clean make file icon target
Browse files Browse the repository at this point in the history
  • Loading branch information
Bambooin committed Aug 14, 2021
1 parent 35cc372 commit 1bcd688
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mainDir=app/src/main
resDir=$(mainDir)/res
jniDir=$(mainDir)/jni

.PHONY: all clean build debug release install icon status opencc-data translate ndk android
.PHONY: all clean build debug release install opencc-data translate ndk android

all: release

Expand All @@ -22,22 +22,6 @@ debug:
install: release
./gradlew installRelease

icon: icon.svg
@echo "updating the icons"
@inkscape -z -e $(resDir)/drawable-xxxhdpi/icon.png -w 192 -h 192 $<
@inkscape -z -e $(resDir)/drawable-xxhdpi/icon.png -w 144 -h 144 $<
@inkscape -z -e $(resDir)/drawable-xhdpi/icon.png -w 96 -h 96 $<
@inkscape -z -e $(resDir)/drawable-hdpi/icon.png -w 72 -h 72 $<
@inkscape -z -e $(resDir)/drawable-mdpi/icon.png -w 48 -h 48 $<

status: status.svg
@echo "updating the status icons"
@inkscape -z -e $(resDir)/drawable-xxxhdpi/status.png -w 96 -h 96 $<
@inkscape -z -e $(resDir)/drawable-xxhdpi/status.png -w 72 -h 72 $<
@inkscape -z -e $(resDir)/drawable-xhdpi/status.png -w 48 -h 48 $<
@inkscape -z -e $(resDir)/drawable-hdpi/status.png -w 36 -h 36 $<
@inkscape -z -e $(resDir)/drawable-mdpi/status.png -w 24 -h 24 $<

$(TRANSLATE): $(resDir)/values-zh-rTW/strings.xml
@echo "translate traditional to simple Chinese: $@"
@mkdir -p $(resDir)/values-zh-rCN
Expand Down

0 comments on commit 1bcd688

Please sign in to comment.