8a9f0205 |
1 | # Makefile - top-level Makefile |
e9d74277 |
2 | # |
a79ac5ba |
3 | # This file is |
4 | # Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk> |
5 | # |
6 | # It is part of adns, which is |
7 | # Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk> |
8 | # Copyright (C) 1999 Tony Finch <dot@dotat.at> |
9 | # |
e9d74277 |
10 | # This program is free software; you can redistribute it and/or modify |
11 | # it under the terms of the GNU General Public License as published by |
12 | # the Free Software Foundation; either version 2, or (at your option) |
13 | # any later version. |
14 | # |
15 | # This program is distributed in the hope that it will be useful, |
16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | # GNU General Public License for more details. |
19 | # |
20 | # You should have received a copy of the GNU General Public License |
21 | # along with this program; if not, write to the Free Software Foundation, |
22 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23 | |
af71f022 |
24 | DISTVERSION= 0.4 |
72cdc702 |
25 | srcdir= @srcdir@ |
26 | VPATH= @srcdir@ |
e9d74277 |
27 | |
72cdc702 |
28 | SUBDIRS= src dynamic client regress |
e9d74277 |
29 | |
72cdc702 |
30 | all install uninstall clean distclean mostlyclean maintainer-clean distprep: |
31 | set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
e1f1ed57 |
32 | $(MAKE) $@-here |
33 | |
4f3f9880 |
34 | all-here install-here uninstall-here distprep-here: README |
e1f1ed57 |
35 | |
36 | clean-here mostlyclean-here: |
96337b87 |
37 | rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz |
bb0038ab |
38 | rm -rf dist_tmp |
e1f1ed57 |
39 | |
40 | distclean-here maintainer-clean-here: clean-here |
41 | rm -f settings.make config.h config.cache config.log config.status |
e9d74277 |
42 | |
72cdc702 |
43 | install-strip: |
44 | $(MAKE) INSTALL_PROGRAM_FLAGS=-s |
e9d74277 |
45 | |
e1f1ed57 |
46 | dist_tmp=dist_tmp/adns-$(DISTVERSION) |
af71f022 |
47 | dist: distprep |
e1f1ed57 |
48 | rm -rf dist_tmp* |
49 | mkdir dist_tmp $(dist_tmp) |
50 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \ |
51 | sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh |
52 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \ |
53 | sed -e 's#.*#ln & $(dist_tmp)/&#' | sh |
af71f022 |
54 | $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean |
e1f1ed57 |
55 | cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)` |
56 | gzip -9 $(dist_tmp).tar |
57 | mv $(dist_tmp).tar.gz . |
e9d74277 |
58 | |
72cdc702 |
59 | check: all |
60 | $(MAKE) -C regress check |
6e88acfa |
61 | |
4f3f9880 |
62 | README README-update: |
63 | lynx -dump -number_links -cfg=/dev/null \ |
64 | http://www.chiark.greenend.org.uk/~ian/adns/ >README.tmp |
65 | mv -f README.tmp README |
66 | |
72cdc702 |
67 | TAGS info dvi: |
68 | # do nothing |