aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2011-11-21 13:40:43 +0000
committerWolfgang Denk <wd@denx.de>2011-12-06 21:34:17 +0100
commit734329f9644273e35716c11292f82723884c628e (patch)
tree2a9e8ffdd6ed9b815b837795117f541658f3455d /Makefile
parent8b0b0c59b52dfd828eebd99e4c8d209690fb767b (diff)
downloadu-boot-linaro-stable-734329f9644273e35716c11292f82723884c628e.tar.gz
Add a "tidy" build option
It is sometimes desireable to clean up the byproducts of the build process without removing the executable results. "make clean" is close, but leaves the build directory with a large number of *.depend* files. This new build option invokes make clean, and then removes the depend files. Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b1f90448a..c2f7f74b6 100644
--- a/Makefile
+++ b/Makefile
@@ -777,11 +777,14 @@ clean:
-o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
| xargs rm -f
-clobber: clean
- @find $(OBJTREE) -type f \( -name '*.depend*' \
- -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
- -print0 \
- | xargs -0 rm -f
+# Removes everything not needed for testing u-boot
+tidy: clean
+ @find $(OBJTREE) -type f \( -name '*.depend*' \) -print | xargs rm -f
+
+clobber: tidy
+ @find $(OBJTREE) -type f \( -name '*.srec' \
+ -o -name '*.bin' -o -name u-boot.img \) \
+ -print0 | xargs -0 rm -f
@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
$(obj)cscope.* $(obj)*.*~
@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL-y)