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