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