move if not exists

This commit is contained in:
Er2 2022-02-10 19:39:53 +03:00
parent f040fa9862
commit 3c6274a763

View file

@ -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