From 4f6874baeebf9de67c763169c687222fde4aedc5 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Fri, 8 Dec 2023 14:39:27 -0500 Subject: [PATCH] 'make tidy' cleans up gbc, o, map, and sym files, but not 2bpp files --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dc82e549..7a4d60f8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .POSIX: .SUFFIXES: .PRECIOUS: %.2bpp oam_%.2bpp -.PHONY: default build build-all test test-all all clean +.PHONY: default build build-all test test-all all clean tidy # # Dev tools binaries and options @@ -174,11 +174,13 @@ test-all: build-all all: build-all test-all -clean: +tidy: rm -f $(games) rm -f $(games:%.gbc=src/main.%.o) rm -f $(games:.gbc=.map) rm -f $(games:.gbc=.sym) + +clean: tidy rm -f $(gfx_files:.png=.2bpp) rm -f $(azlj_gfx:.png=.2bpp) rm -f $(azlg_gfx:.png=.2bpp)