diff --git a/Makefile b/Makefile index 7cdb1e35ec3..98b56a3c3dd 100644 --- a/Makefile +++ b/Makefile @@ -251,6 +251,15 @@ endif clean: $(RM) -r $(ROM) $(ELF) build +clean_builtsrc: + $(RM) -r $(ROM) $(ELF) build/src build/data +# Delete files directly inside build/ (but not in subfolders) + find build -maxdepth 1 -type f -exec $(RM) {} \; + +clean_builtassets: + $(RM) -r $(ROM) $(ELF) build/assets + find build -maxdepth 1 -type f -exec $(RM) {} \; + assetclean: $(RM) -r $(ASSET_BIN_DIRS) $(RM) -r assets/text/*.h @@ -271,7 +280,7 @@ test: $(ROM) $(EMULATOR) $(EMU_FLAGS) $< -.PHONY: all clean setup test distclean assetclean +.PHONY: all clean clean_builtsrc clean_builtassets setup test distclean assetclean #### Various Recipes ####