aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-03-16 17:07:09 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-16 18:14:18 +1100
commit246fb0457e6aabd81b617ab1d5423234edce3dc4 (patch)
tree7e5a2c33f957ce7d0d9c84775b3558eeb61c5194
parentc9bf78b0556b1d2c2f3a5041d3da7df225227cde (diff)
downloadskiboot-246fb0457e6aabd81b617ab1d5423234edce3dc4.zip
skiboot-246fb0457e6aabd81b617ab1d5423234edce3dc4.tar.gz
skiboot-246fb0457e6aabd81b617ab1d5423234edce3dc4.tar.bz2
Makefile: Update clean target for stb
stb leaves a bunch of files around even after clean. Fix this. Signed-off-by: Michael Neuling <mikey@neuling.org> [stewart@linux.vnet.ibm.com: use explicit TARGET rather than *.stb] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--Makefile.main2
-rw-r--r--libstb/Makefile.inc5
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index 6a69b65..214ab48 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 $(TARGET).lid.stb $(TARGET).lid.xz.stb
distclean: clean
$(RM) *~ $(SUBDIRS:%=%/*~) include/*~
diff --git a/libstb/Makefile.inc b/libstb/Makefile.inc
index 68d9dc8..8eba009 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