From 678de3a122cc4dc79f4318b1b1cf0b9e48568a6a Mon Sep 17 00:00:00 2001 From: natinusala Date: Mon, 19 Nov 2018 13:28:02 +0100 Subject: [PATCH] libnx: make clean removes *.d files --- Makefile.libnx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.libnx b/Makefile.libnx index 689d8f6d47..b9f482b563 100644 --- a/Makefile.libnx +++ b/Makefile.libnx @@ -222,7 +222,8 @@ ifneq ($(ROMFS),) export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS) endif -DEPENDS := $(OFILES:.o=.d) +DEPENDS_TMP := $(OFILES:.o=.d) +DEPENDS := $(filter-out libretro_libnx.a,$(DEPENDS_TMP)) .PHONY: clean all @@ -244,7 +245,7 @@ endif $(OUTPUT).elf : $(OBJ) clean: - rm -f $(OBJ) $(OUTPUT).pfs0 $(OUTPUT).nro $(OUTPUT).elf + rm -f $(DEPENDS) $(OBJ) $(OUTPUT).pfs0 $(OUTPUT).nro $(OUTPUT).elf #--------------------------------------------------------------------------------- # you need a rule like this for each extension you use as binary data