Commit | Line | Data |
---|---|---|
9028e234 IJ |
1 | # Copyright 1996-2013 Ian Jackson <ijackson@chiark.greenend.org.uk> |
2 | # Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk> | |
3 | # Copyright 1999,2003 | |
4 | # Chancellor Masters and Scholars of the University of Cambridge | |
5 | # Copyright 2010 Tony Finch <fanf@dotat.at> | |
4268f152 | 6 | # |
7 | # This is free software; you can redistribute it and/or modify it | |
8 | # under the terms of the GNU General Public License as published by | |
9028e234 | 9 | # the Free Software Foundation; either version 3 of the License, or |
4268f152 | 10 | # (at your option) any later version. |
11 | # | |
12 | # This program is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | # General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
9028e234 | 18 | # along with userv-utils; if not, see http://www.gnu.org/licenses/. |
4268f152 | 19 | |
6939778b | 20 | VERSION=0.2.99.0.1 |
4268f152 | 21 | |
22 | all: | |
a0522191 | 23 | @echo >&2 'See README. This is not a unified package.' |
4268f152 | 24 | |
03e9a8cd | 25 | SUBDIRS_DISTCLEAN= www-cgi ipif git-daemon |
c62ccbd5 | 26 | |
4268f152 | 27 | distclean: |
f680ebff | 28 | find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name core \ |
29 | -o -name dist_tmp -o -name userv-utils-\*.tar.gz \ | |
30 | -o -name '.#*' \) \ | |
31 | -print0 | xargs -0r rm -rf -- | |
c62ccbd5 | 32 | for f in $(SUBDIRS_DISTCLEAN); do make -C $$f distclean; done |
4268f152 | 33 | |
34 | dist_tmp=dist_tmp/userv-utils-$(VERSION) | |
f680ebff | 35 | dist_prune=\( -name CVS -o -name 'dist_tmp*' \) |
4268f152 | 36 | dist: distclean |
37 | rm -rf dist_tmp* | |
38 | mkdir dist_tmp $(dist_tmp) | |
f680ebff | 39 | find . $(dist_prune) -prune -o -type d -print | \ |
4268f152 | 40 | sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh |
f680ebff | 41 | find . $(dist_prune) -prune -o -type f -print | \ |
4268f152 | 42 | sed -e 's#.*#ln & $(dist_tmp)/&#' | sh |
43 | cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)` | |
44 | gzip -9 $(dist_tmp).tar | |
45 | mv $(dist_tmp).tar.gz . |