From 3c6274a7633ddf2ed247308c61c352151d91a42c Mon Sep 17 00:00:00 2001 From: Er2 Date: Thu, 10 Feb 2022 19:39:53 +0300 Subject: [PATCH] move if not exists --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2e409c1..a4f1431 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ out.apk: AndroidManifest.xml gen/classes.dex $(KEY_PATH) @$(JARSIGNER) -keystore $(KEY_PATH) -storepass '$(KEY_PASS)' $@.tmp $(KEY_NAME) @$(ZIPALIGN) -f 4 $@.tmp $@ - -@mv -f $@.tmp $@ + -@if [ ! -r "$@" ]; then mv -f $@.tmp $@; fi gen/classes.dex: prepare $(CLSS) -@echo removing R classes to economy some space