Do distclean so it works; finalise version 0.4.
[adns] / Makefile.in
CommitLineData
2fc34454 1# Makefile - top-level Makefile
1c957fda 2#
a719a4be 3# This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
1c957fda 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
5ab2163b 19DISTVERSION= 0.4
9579019a 20srcdir= @srcdir@
21VPATH= @srcdir@
1c957fda 22
9579019a 23SUBDIRS= src dynamic client regress
1c957fda 24
9579019a 25all install uninstall clean distclean mostlyclean maintainer-clean distprep:
26 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
a8ab18db 27 $(MAKE) $@-here
28
df1d1f3a 29all-here install-here uninstall-here distprep-here: README
a8ab18db 30
31clean-here mostlyclean-here:
ac41b8f0 32 rm -f *~ ./#*# core *.orig *.rej Makefile adns-*.tar.gz
33 rm -rf dist_tmp
a8ab18db 34
35distclean-here maintainer-clean-here: clean-here
36 rm -f settings.make config.h config.cache config.log config.status
1c957fda 37
9579019a 38install-strip:
39 $(MAKE) INSTALL_PROGRAM_FLAGS=-s
1c957fda 40
a8ab18db 41dist_tmp=dist_tmp/adns-$(DISTVERSION)
5ab2163b 42dist: distprep
a8ab18db 43 rm -rf dist_tmp*
44 mkdir dist_tmp $(dist_tmp)
45 find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \
46 sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
47 find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \
48 sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
5ab2163b 49 $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean
a8ab18db 50 cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
51 gzip -9 $(dist_tmp).tar
52 mv $(dist_tmp).tar.gz .
1c957fda 53
9579019a 54check: all
55 $(MAKE) -C regress check
cc0a8cd2 56
df1d1f3a 57README 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
9579019a 62TAGS info dvi:
63 # do nothing