add *.o to .gitignore
[userv-utils] / Makefile
CommitLineData
711a0748 1# Copyright (C) 2000,2003 Ian Jackson
4268f152 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#
17# $Id$
18
6939778b 19VERSION=0.2.99.0.1
4268f152 20
21all:
a0522191 22 @echo >&2 'See README. This is not a unified package.'
4268f152 23
c62ccbd5 24SUBDIRS_DISTCLEAN= www-cgi ipif
25
4268f152 26distclean:
f680ebff 27 find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \
28 -o -name dist_tmp -o -name userv-utils-\*.tar.gz \
29 -o -name '.#*' \) \
30 -print0 | xargs -0r rm -rf --
c62ccbd5 31 for f in $(SUBDIRS_DISTCLEAN); do make -C $$f distclean; done
4268f152 32
33dist_tmp=dist_tmp/userv-utils-$(VERSION)
f680ebff 34dist_prune=\( -name CVS -o -name 'dist_tmp*' \)
4268f152 35dist: distclean
36 rm -rf dist_tmp*
37 mkdir dist_tmp $(dist_tmp)
f680ebff 38 find . $(dist_prune) -prune -o -type d -print | \
4268f152 39 sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
f680ebff 40 find . $(dist_prune) -prune -o -type f -print | \
4268f152 41 sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
42 cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
43 gzip -9 $(dist_tmp).tar
44 mv $(dist_tmp).tar.gz .