]> git.ozlabs.org Git - yaboot.git/blobdiff - Makefile
Fix make clean from previous patch
[yaboot.git] / Makefile
index 7c5c1bc852476cc7393c01c8d1702f9736507b51..7edde3264b4537d0a63c3e050d19b7b8f4f5fd0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -148,10 +148,10 @@ bindist: all
 
 clean:
        rm -f second/yaboot util/addnote util/elfextract $(OBJS)
-       find . -path './{arch}' -prune -o -name '#*' | xargs rm -f
-       find . -path './{arch}' -prune -o -name '.#*' | xargs rm -f
-       find . -path './{arch}' -prune -o -name '*~' | xargs rm -f
-       find . -path './{arch}' -prune -o -name '*.swp' | xargs rm -f
+       find . -not -path './\{arch\}*' -name '#*' | xargs rm -f
+       find . -not -path './\{arch\}*' -name '.#*' | xargs rm -f
+       find . -not -path './\{arch\}*' -name '*~' | xargs rm -f
+       find . -not -path './\{arch\}*' -name '*.swp' | xargs rm -f
        -gunzip man/*.gz
        rm -rf man.deb