From d9b48f490c647df5b77550658cc11027c1291eb5 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Tue, 15 Oct 2024 22:32:47 -0400 Subject: [PATCH] Avoid Makefile footgun --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3dd8779ef62..509c0ace4ae 100644 --- a/Makefile +++ b/Makefile @@ -342,16 +342,16 @@ gfx/mobile/stadium2_n64.2bpp: tools/gfx += --trim-whitespace %.2bpp: %.png $(RGBGFX) $(rgbgfx) -o $@ $< $(if $(tools/gfx),\ - tools/gfx $(tools/gfx) -o $@ $@) + tools/gfx $(tools/gfx) -o $@ $@ || $$($(RM) $@ && false)) %.1bpp: %.png $(RGBGFX) $(rgbgfx) --depth 1 -o $@ $< $(if $(tools/gfx),\ - tools/gfx $(tools/gfx) --depth 1 -o $@ $@) + tools/gfx $(tools/gfx) --depth 1 -o $@ $@ || $$($(RM) $@ && false)) %.gbcpal: %.png $(RGBGFX) -p $@ $< - tools/gbcpal $(tools/gbcpal) $@ $@ + tools/gbcpal $(tools/gbcpal) $@ $@ || $$($(RM) $@ && false) %.dimensions: %.png tools/png_dimensions $< $@