From: H. Peter Anvin Date: Tue, 4 Mar 2008 05:59:10 +0000 (-0800) Subject: Add stuff to "make dist" to clean up crap that shouldn't be there X-Git-Tag: syslinux-3.63-pre2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c8034162365c8de51f2ca5e507d87b1dd9e40e8;p=platform%2Fupstream%2Fsyslinux.git Add stuff to "make dist" to clean up crap that shouldn't be there --- diff --git a/Makefile b/Makefile index 9fddb8a..49bb5ec 100644 --- a/Makefile +++ b/Makefile @@ -232,9 +232,9 @@ clean: local-tidy local-clean set -e ; for i in $(BESUBDIRS) $(IESUBDIRS) $(BSUBDIRS) $(ISUBDIRS) ; do $(MAKE) -C $$i $@ ; done dist: tidy - for dir in . sample memdisk ; do \ - ( cd $$dir && rm -f *~ \#* core ) ; \ - done + find . \( -name '*~' -o -name '#*' -o -name core \ + -o -name '.*.d' -o -name .depend \) -type f -print0 \ + | xargs -0rt rm -f local-spotless: rm -f $(BTARGET) .depend *.so.*