Don't fail if the .sav file was never created

This commit is contained in:
Gwilym Kuiper 2021-03-06 22:43:37 +00:00
parent 9b0bdb17e5
commit 0d17da1e79

View file

@ -21,12 +21,12 @@ out/release/%.gba: cargo-release-%
d-%: out/debug/%.gba
@OUTNAME=$(patsubst d-%,%,$@)
@mgba-qt $<
@rm out/debug/$${OUTNAME}.sav
@rm -f out/debug/$${OUTNAME}.sav
r-%: out/release/%.gba
@OUTNAME=$(patsubst r-%,%,$@)
@mgba-qt $<
@rm out/release/$${OUTNAME}.sav
@rm -f out/release/$${OUTNAME}.sav
cargo-release-%: $(RUSTFILES) out/crt0.o
@OUTNAME=$(patsubst cargo-release-%,%, $@)