diff options
author | ian <ian> | 1999-11-09 23:18:10 +0000 |
---|---|---|
committer | ian <ian> | 1999-11-09 23:18:10 +0000 |
commit | 4268f152508c2cbfd0fa4b3165317a3c31ad7df1 (patch) | |
tree | c554d9c7e896111bae5c385cfb7aa511275df84c /Makefile | |
parent | 2d57a8106b5ff6243cac02f793a23f2277a445d4 (diff) | |
download | userv-utils-4268f152508c2cbfd0fa4b3165317a3c31ad7df1.tar.gz |
New Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2f0b156 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +# Copyright (C) 1999 Ian Jackson +# +# This is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with userv-utils; if not, write to the Free Software +# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# $Id$ + +VERSION=0.1 + +all: + 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 -- + +dist_tmp=dist_tmp/userv-utils-$(VERSION) +dist: distclean + rm -rf dist_tmp* + mkdir dist_tmp $(dist_tmp) + find . -name dist_tmp -prune -o -type d -print | \ + sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh + find . -name dist_tmp -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 + mv $(dist_tmp).tar.gz . |