From 5a58d19f7d9c13d158a0e9dcdeddeb632cbc7f47 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 14 Mar 2021 12:22:48 +0100 Subject: [PATCH] Trap trying to build non-existent files Fixes the usual infinite loop --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index aa7a3e9..1827977 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,7 @@ endif # # ################################################ + # By default, asset recipes convert files in `res/` into other files in `res/` # This line causes assets not found in `res/` to be also looked for in `src/res/` # "Source" assets can thus be safely stored there without `make clean` removing them @@ -112,3 +113,8 @@ VPATH := $(SRCDIR) # Compressor script requires Python 3 $(RESDIR)/%.pb16: $(SRCDIR)/tools/pb16.py $(RESDIR)/% $^ $@ + +# Catch non-existent files +# KEEP THIS LAST!! +%: + @false