[Skiboot] [PATCH] Makefile: Update clean target for stb

Michael Neuling mikey at neuling.org
Thu Mar 16 17:07:09 AEDT 2017


stb leaves a bunch of files around even after clean.  Fix this.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 Makefile.main       | 2 +-
 libstb/Makefile.inc | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile.main b/Makefile.main
index 6a69b65d48..ca94c0982c 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -278,7 +278,7 @@ clean:
 	$(RM) *.[odsa] $(SUBDIRS:%=%/*.[odsa])
 	$(RM) *.elf $(TARGET).lid *.map $(TARGET).lds $(TARGET).lid.xz
 	$(RM) include/asm-offsets.h version.c .version
-	$(RM) extract-gcov
+	$(RM) extract-gcov *.stb
 
 distclean: clean
 	$(RM) *~ $(SUBDIRS:%=%/*~) include/*~
diff --git a/libstb/Makefile.inc b/libstb/Makefile.inc
index 68d9dc8d2a..8eba009125 100644
--- a/libstb/Makefile.inc
+++ b/libstb/Makefile.inc
@@ -16,3 +16,8 @@ $(LIBSTB): $(LIBSTB_OBJS:%=$(LIBSTB_DIR)/%) $(DRIVERS) $(TSS)
 libstb/create-container: libstb/create-container.c
 	$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) \
 	-Wpadded -O0 -g -I$(SRC) -I$(SRC)/include -o $@ $<,$<)
+
+clean: create-container-clean
+
+create-container-clean:
+	$(RM) libstb/create-container
-- 
2.9.3



More information about the Skiboot mailing list