chiark / gitweb /
@@ -3,6 +3,8 @@
[adns] / Makefile.in
CommitLineData
39f45e7e 1# Makefile[.in] - top-level Makefile
e9d74277 2#
39f45e7e 3# This file is part of adns, which is
4# Copyright (C) 1997-2000,2003,2006 Ian Jackson
5# Copyright (C) 1999-2000,2003,2006 Tony Finch
6# Copyright (C) 1991 Massachusetts Institute of Technology
7# (See the file INSTALL for full details.)
a79ac5ba 8#
e9d74277 9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2, or (at your option)
12# any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software Foundation,
21# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
8a5e5147 23# Remember to change ADNS_VERSION_STRING in client/client.h too, and
24# possibly library soname (MAJOR and MINOR in settings.make.in).
2eeb75c3 25DISTVERSION= 1.2
8a5e5147 26
72cdc702 27srcdir= @srcdir@
28VPATH= @srcdir@
e9d74277 29
acfd75c4 30ENABLE_DYNAMIC= @ENABLE_DYNAMIC@
31ifeq ($(ENABLE_DYNAMIC),elf)
32SUBDIRS_DYNAMIC=dynamic
33else
34SUBDIRS_DYNAMIC=
35endif
36
37SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress
e9d74277 38
72cdc702 39all install uninstall clean distclean mostlyclean maintainer-clean distprep:
40 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
e1f1ed57 41 $(MAKE) $@-here
42
4f3f9880 43all-here install-here uninstall-here distprep-here: README
e1f1ed57 44
45clean-here mostlyclean-here:
96337b87 46 rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz
bb0038ab 47 rm -rf dist_tmp
e1f1ed57 48
49distclean-here maintainer-clean-here: clean-here
50 rm -f settings.make config.h config.cache config.log config.status
e9d74277 51
72cdc702 52install-strip:
53 $(MAKE) INSTALL_PROGRAM_FLAGS=-s
e9d74277 54
e1f1ed57 55dist_tmp=dist_tmp/adns-$(DISTVERSION)
af71f022 56dist: distprep
e1f1ed57 57 rm -rf dist_tmp*
58 mkdir dist_tmp $(dist_tmp)
59 find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \
60 sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
61 find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \
62 sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
af71f022 63 $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean
e1f1ed57 64 cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
65 gzip -9 $(dist_tmp).tar
66 mv $(dist_tmp).tar.gz .
e9d74277 67
72cdc702 68check: all
69 $(MAKE) -C regress check
6e88acfa 70
c6826df6 71README: README.html
72 lynx -dump -number_links -cfg=/dev/null ./README.html >README.tmp
4f3f9880 73 mv -f README.tmp README
74
72cdc702 75TAGS info dvi:
76 # do nothing
1104c85d 77
78.PHONY: install #people with case-insensitive filesystems lose otherwise!