# tag: automatic-ChangeLog--erbenson@alaska.net--public/yaboot--devel--1.3
 #
 
+2002-03-31 05:00:26 GMT        Ethan Benson <erbenson@alaska.net>      patch-17
+
+    Summary:
+      Update clean targets
+    Revision:
+      yaboot--devel--1.3--patch-17
+
+    * Remove chmod calls from make clean, arch is supposed to keep track
+      of permissions correctly so they shouldn't be needed now.
+    
+    * Add '-path './{arch}' -prune -o ' to all the find calls so cleaning
+      doesn't recurse into arch's revision control directories and possibly
+      corrupt them.
+    
+    * Add archclean target which removes all of arch's cruft so release
+      tarballs won't be ridiculously bloated (arch keeps a complete
+      duplicate copy of the source making the tarball twice the size it
+      should be, no good for release tarballs).  If people want a `archable'
+      tree they should just use arch to check one out.
+
+    modified files:
+     ChangeLog Makefile
+
+
 2002-03-27 14:10:34 GMT        Ethan Benson <erbenson@alaska.net>      patch-16
 
     Summary:
 
 
 clean:
        rm -f second/yaboot util/addnote util/elfextract $(OBJS)
-       find . -name '#*' | xargs rm -f
-       find . -name '.#*' | xargs rm -f
-       find . -name '*~' | xargs rm -f
-       find . -name '*.swp' | 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 '*~' | xargs rm -f
+       find . -path './{arch}' -prune -o -name '*.swp' | xargs rm -f
        -gunzip man/*.gz
        rm -rf man.deb
-       chmod 755 ybin/ybin ybin/ofpath ybin/yabootconfig
-       chmod -R u+rwX,go=rX .
-       chmod a-w COPYING
 
 cleandocs:
        make -C doc clean
 
+## removes arch revision control crap, only to be called for making
+## release tarballs.  arch should have a export command like cvs...
+
+archclean:
+       rm -rf '{arch}'
+       find . -type d -name .arch-ids | xargs rm -rf
+
 maintclean: clean cleandocs
 
 release: docs bindist clean