chiark / gitweb /
update copyright dates and ADNS_VERSION_STRING
[adns] / Makefile.in
CommitLineData
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
849075a0 7# Copyright (C) 1997-2005 Ian Jackson <ian@davenant.greenend.org.uk>
8# Copyright (C) 1999-2004 Tony Finch <dot@dotat.at>
d942707d 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
aa3ffb57 24# Remember to change ADNS_VERSION_STRING in client/client.h too, and
25# possibly library soname (MAJOR and MINOR in settings.make.in).
512d9c4a 26DISTVERSION= 1.1
aa3ffb57 27
9579019a 28srcdir= @srcdir@
29VPATH= @srcdir@
1c957fda 30
48337073 31ENABLE_DYNAMIC= @ENABLE_DYNAMIC@
32ifeq ($(ENABLE_DYNAMIC),elf)
33SUBDIRS_DYNAMIC=dynamic
34else
35SUBDIRS_DYNAMIC=
36endif
37
38SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress
1c957fda 39
9579019a 40all install uninstall clean distclean mostlyclean maintainer-clean distprep:
41 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
a8ab18db 42 $(MAKE) $@-here
43
df1d1f3a 44all-here install-here uninstall-here distprep-here: README
a8ab18db 45
46clean-here mostlyclean-here:
dd34699e 47 rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz
ac41b8f0 48 rm -rf dist_tmp
a8ab18db 49
50distclean-here maintainer-clean-here: clean-here
51 rm -f settings.make config.h config.cache config.log config.status
1c957fda 52
9579019a 53install-strip:
54 $(MAKE) INSTALL_PROGRAM_FLAGS=-s
1c957fda 55
a8ab18db 56dist_tmp=dist_tmp/adns-$(DISTVERSION)
5ab2163b 57dist: distprep
a8ab18db 58 rm -rf dist_tmp*
59 mkdir dist_tmp $(dist_tmp)
60 find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \
61 sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
62 find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \
63 sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
5ab2163b 64 $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean
a8ab18db 65 cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
66 gzip -9 $(dist_tmp).tar
67 mv $(dist_tmp).tar.gz .
1c957fda 68
9579019a 69check: all
70 $(MAKE) -C regress check
cc0a8cd2 71
bef232ae 72README: README.html
73 lynx -dump -number_links -cfg=/dev/null ./README.html >README.tmp
df1d1f3a 74 mv -f README.tmp README
75
9579019a 76TAGS info dvi:
77 # do nothing
cc1cc02a 78
79.PHONY: install #people with case-insensitive filesystems lose otherwise!