'make tidy' cleans up gbc, o, map, and sym files, but not 2bpp files

This commit is contained in:
Rangi42 2023-12-08 14:39:27 -05:00
parent 34c5a80172
commit 4f6874baee

View File

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