chiark / gitweb /
Update VERSION
[userv-utils] / Makefile
CommitLineData
77207488 1# Copyright (C) 2000 Ian Jackson
1941622d 2#
3# This is free software; you can redistribute it and/or modify it
4# under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 2 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11# General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with userv-utils; if not, write to the Free Software
15# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16#
e8c033bb 17# $Id: Makefile,v 1.5 2000/06/21 22:48:53 ian Exp $
1941622d 18
e8c033bb 19VERSION=0.1.90
1941622d 20
21all:
103cf040 22 @echo >&2 'See README. This is not a unified package.'
1941622d 23
24distclean:
b1c6c935 25 find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \
26 -o -name dist_tmp -o -name userv-utils-\*.tar.gz \
27 -o -name '.#*' \) \
28 -print0 | xargs -0r rm -rf --
1941622d 29
30dist_tmp=dist_tmp/userv-utils-$(VERSION)
b1c6c935 31dist_prune=\( -name CVS -o -name 'dist_tmp*' \)
1941622d 32dist: distclean
33 rm -rf dist_tmp*
34 mkdir dist_tmp $(dist_tmp)
b1c6c935 35 find . $(dist_prune) -prune -o -type d -print | \
1941622d 36 sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
b1c6c935 37 find . $(dist_prune) -prune -o -type f -print | \
1941622d 38 sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
39 cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
40 gzip -9 $(dist_tmp).tar
41 mv $(dist_tmp).tar.gz .