chiark / gitweb /
Clean up message.
[userv-utils] / Makefile
index db6d1f5ef069dae4c5348c6c5c1a7117a75232b9..384eb44154969bbb98e6b98e4a48ce6c6f63fde8 100644 (file)
--- a/Makefile
+++ b/Makefile
 # along with userv-utils; if not, write to the Free Software
 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #
-# $Id: Makefile,v 1.1 1999/11/09 23:18:10 ian Exp $
+# $Id: Makefile,v 1.3 2000/06/09 20:27:05 ian Exp $
 
 VERSION=0.1
 
 all:
-       echo >&2 'See README.  This is not a unified package.'
+       @echo >&2 'See README.  This is not a unified package.'
 
 distclean:
-       find . -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \
-               -o -name dist_tmp \
-               -print0 | xargs -0r rm --
+       find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \
+               -o -name dist_tmp -o -name userv-utils-\*.tar.gz \
+               -o -name '.#*' \) \
+               -print0 | xargs -0r rm -rf --
 
 dist_tmp=dist_tmp/userv-utils-$(VERSION)
+dist_prune=\( -name CVS -o -name 'dist_tmp*' \)
 dist:                  distclean
        rm -rf dist_tmp*
        mkdir dist_tmp $(dist_tmp)
-       find . -name dist_tmp -prune -o -type d -print | \
+       find . $(dist_prune) -prune -o -type d -print | \
                sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
-       find . -name dist_tmp -prune -o -type f -print | \
+       find . $(dist_prune) -prune -o -type f -print | \
                sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
        cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
        gzip -9 $(dist_tmp).tar