X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv-utils.git;a=blobdiff_plain;f=Makefile;h=b4ad80942a1fb8946b9ffdcac071de953eb9462a;hp=3be220581bf37b12e85ecdf29688d572c3890f9a;hb=af0fdc2725972c0723e14ffe34a5dfae5c0b3594;hpb=7729298ad653ba4e0b10bacc9f27d210b4eaf4e7 diff --git a/Makefile b/Makefile index 3be2205..b4ad809 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ -# Copyright (C) 2000 Ian Jackson +# Copyright 1996-2013 Ian Jackson +# Copyright 1998 David Damerell +# Copyright 1999,2003 +# Chancellor Masters and Scholars of the University of Cambridge +# Copyright 2010 Tony Finch # # 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 +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -11,31 +15,16 @@ # 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.90 +# along with userv-utils; if not, see http://www.gnu.org/licenses/. all: @echo >&2 'See README. This is not a unified package.' +SUBDIRS_DISTCLEAN= www-cgi ipif git-daemon + distclean: 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 . $(dist_prune) -prune -o -type d -print | \ - sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh - 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 - mv $(dist_tmp).tar.gz . + for f in $(SUBDIRS_DISTCLEAN); do make -C $$f distclean; done