2fc34454 |
1 | # Makefile - top-level Makefile |
1c957fda |
2 | # |
d942707d |
3 | # This file is |
1674b672 |
4 | # Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk> |
d942707d |
5 | # |
6 | # It is part of adns, which is |
3d5cde09 |
7 | # Copyright (C) 1997-2000 Ian Jackson <ian@davenant.greenend.org.uk> |
d942707d |
8 | # Copyright (C) 1999 Tony Finch <dot@dotat.at> |
9 | # |
1c957fda |
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 | |
67887df6 |
24 | DISTVERSION= 0.9 |
9579019a |
25 | srcdir= @srcdir@ |
26 | VPATH= @srcdir@ |
1c957fda |
27 | |
48337073 |
28 | ENABLE_DYNAMIC= @ENABLE_DYNAMIC@ |
29 | ifeq ($(ENABLE_DYNAMIC),elf) |
30 | SUBDIRS_DYNAMIC=dynamic |
31 | else |
32 | SUBDIRS_DYNAMIC= |
33 | endif |
34 | |
35 | SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress |
1c957fda |
36 | |
9579019a |
37 | all install uninstall clean distclean mostlyclean maintainer-clean distprep: |
38 | set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
a8ab18db |
39 | $(MAKE) $@-here |
40 | |
df1d1f3a |
41 | all-here install-here uninstall-here distprep-here: README |
a8ab18db |
42 | |
43 | clean-here mostlyclean-here: |
dd34699e |
44 | rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz |
ac41b8f0 |
45 | rm -rf dist_tmp |
a8ab18db |
46 | |
47 | distclean-here maintainer-clean-here: clean-here |
48 | rm -f settings.make config.h config.cache config.log config.status |
1c957fda |
49 | |
9579019a |
50 | install-strip: |
51 | $(MAKE) INSTALL_PROGRAM_FLAGS=-s |
1c957fda |
52 | |
a8ab18db |
53 | dist_tmp=dist_tmp/adns-$(DISTVERSION) |
5ab2163b |
54 | dist: distprep |
a8ab18db |
55 | rm -rf dist_tmp* |
56 | mkdir dist_tmp $(dist_tmp) |
57 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \ |
58 | sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh |
59 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \ |
60 | sed -e 's#.*#ln & $(dist_tmp)/&#' | sh |
5ab2163b |
61 | $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean |
a8ab18db |
62 | cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)` |
63 | gzip -9 $(dist_tmp).tar |
64 | mv $(dist_tmp).tar.gz . |
1c957fda |
65 | |
9579019a |
66 | check: all |
67 | $(MAKE) -C regress check |
cc0a8cd2 |
68 | |
df1d1f3a |
69 | README README-update: |
70 | lynx -dump -number_links -cfg=/dev/null \ |
71 | http://www.chiark.greenend.org.uk/~ian/adns/ >README.tmp |
72 | mv -f README.tmp README |
73 | |
9579019a |
74 | TAGS info dvi: |
75 | # do nothing |