mini-cards/Makefile

46 lines
1.4 KiB
Makefile
Raw Normal View History

2019-09-28 18:18:53 +00:00
ROUND_ICONS=app/src/main/res/mipmap-mdpi/ic_launcher_round.png \
app/src/main/res/mipmap-hdpi/ic_launcher_round.png \
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png \
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
RECT_ICONS=app/src/main/res/mipmap-mdpi/ic_launcher.png \
app/src/main/res/mipmap-hdpi/ic_launcher.png \
app/src/main/res/mipmap-xhdpi/ic_launcher.png \
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
ICONS=$(ROUND_ICONS) $(RECT_ICONS)
RECT_BASE=app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
ROUND_BASE=app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
BASE_ICONS=$(RECT_BASE) $(ROUND_BASE)
.PHONY: all
all: $(ICONS)
app/src/main/res/mipmap-mdpi/ic_launcher_round.png: $(ROUND_BASE)
convert $< -resize 48x48 $@
app/src/main/res/mipmap-hdpi/ic_launcher_round.png: $(ROUND_BASE)
convert $< -resize 72x72 $@
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: $(ROUND_BASE)
convert $< -resize 96x96 $@
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: $(ROUND_BASE)
convert $< -resize 144x144 $@
app/src/main/res/mipmap-mdpi/ic_launcher.png: $(RECT_BASE)
convert $< -resize 48x48 $@
app/src/main/res/mipmap-hdpi/ic_launcher.png: $(RECT_BASE)
convert $< -resize 72x72 $@
app/src/main/res/mipmap-xhdpi/ic_launcher.png: $(RECT_BASE)
convert $< -resize 96x96 $@
app/src/main/res/mipmap-xxhdpi/ic_launcher.png: $(RECT_BASE)
convert $< -resize 144x144 $@