Skip to content

Commit

Permalink
Makefile: Update clean target for stb
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mikey authored and stewartsmith committed Mar 16, 2017
1 parent c9bf78b commit 246fb04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -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/*~
Expand Down
5 changes: 5 additions & 0 deletions libstb/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 246fb04

Please sign in to comment.