Commit | Line | Data |
---|---|---|
ae8cc977 | 1 | # Makefile[.in] - top-level Makefile |
1c957fda | 2 | # |
ae8cc977 | 3 | # This file is part of adns, which is |
26e1c3d6 | 4 | # Copyright (C) 1997-2000,2003,2006,2014 Ian Jackson |
ae8cc977 | 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.) | |
d942707d | 8 | # |
1c957fda | 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 | |
7f8bbe29 | 11 | # the Free Software Foundation; either version 3, or (at your option) |
1c957fda | 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 | |
8c09a4c6 | 20 | # along with this program; if not, write to the Free Software Foundation. |
1c957fda | 21 | |
aa3ffb57 | 22 | # Remember to change ADNS_VERSION_STRING in client/client.h too, and |
23 | # possibly library soname (MAJOR and MINOR in settings.make.in). | |
1afaf3f3 | 24 | DISTVERSION= 1.5.0~~ |
aa3ffb57 | 25 | |
9579019a | 26 | srcdir= @srcdir@ |
27 | VPATH= @srcdir@ | |
1c957fda | 28 | |
48337073 | 29 | ENABLE_DYNAMIC= @ENABLE_DYNAMIC@ |
30 | ifeq ($(ENABLE_DYNAMIC),elf) | |
31 | SUBDIRS_DYNAMIC=dynamic | |
32 | else | |
33 | SUBDIRS_DYNAMIC= | |
34 | endif | |
35 | ||
36 | SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress | |
1c957fda | 37 | |
9579019a | 38 | all install uninstall clean distclean mostlyclean maintainer-clean distprep: |
39 | set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done | |
a8ab18db | 40 | $(MAKE) $@-here |
41 | ||
df1d1f3a | 42 | all-here install-here uninstall-here distprep-here: README |
a8ab18db | 43 | |
44 | clean-here mostlyclean-here: | |
dd34699e | 45 | rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz |
ac41b8f0 | 46 | rm -rf dist_tmp |
a8ab18db | 47 | |
48 | distclean-here maintainer-clean-here: clean-here | |
49 | rm -f settings.make config.h config.cache config.log config.status | |
1c957fda | 50 | |
9579019a | 51 | install-strip: |
52 | $(MAKE) INSTALL_PROGRAM_FLAGS=-s | |
1c957fda | 53 | |
a8ab18db | 54 | dist_tmp=dist_tmp/adns-$(DISTVERSION) |
5ab2163b | 55 | dist: distprep |
a8ab18db | 56 | rm -rf dist_tmp* |
57 | mkdir dist_tmp $(dist_tmp) | |
ef469c94 | 58 | find \( -name .git -o -name dist_tmp* \) -prune -o -type d -print | \ |
a8ab18db | 59 | sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh |
ef469c94 | 60 | find \( -name .git -o -name dist_tmp* \) -prune -o -type f -print | \ |
a8ab18db | 61 | sed -e 's#.*#ln & $(dist_tmp)/&#' | sh |
5ab2163b | 62 | $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean |
a8ab18db | 63 | cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)` |
64 | gzip -9 $(dist_tmp).tar | |
65 | mv $(dist_tmp).tar.gz . | |
1c957fda | 66 | |
9579019a | 67 | check: all |
68 | $(MAKE) -C regress check | |
cc0a8cd2 | 69 | |
bef232ae | 70 | README: README.html |
2dee2b7a MW |
71 | lynx -dump -number_links -cfg=/dev/null $(srcdir)/README.html >README.tmp |
72 | mv -f README.tmp $(srcdir)/README | |
df1d1f3a | 73 | |
9579019a | 74 | TAGS info dvi: |
75 | # do nothing | |
cc1cc02a | 76 | |
77 | .PHONY: install #people with case-insensitive filesystems lose otherwise! |