2013-10-07 10:10:06 -05:00
|
|
|
#
|
|
|
|
# @configure_input@
|
|
|
|
#
|
2014-02-20 08:12:19 -06:00
|
|
|
#
|
2014-02-25 07:12:33 -06:00
|
|
|
# Copyright (c) 2013, Verisign, Inc., NLnet Labs
|
2014-02-20 08:12:19 -06:00
|
|
|
# All rights reserved.
|
2014-05-08 22:44:27 -05:00
|
|
|
#
|
2014-02-20 08:12:19 -06:00
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
# * Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
2014-02-25 07:23:19 -06:00
|
|
|
# * Neither the names of the copyright holders nor the
|
2014-02-20 08:12:19 -06:00
|
|
|
# names of its contributors may be used to endorse or promote products
|
|
|
|
# derived from this software without specific prior written permission.
|
2014-05-08 22:44:27 -05:00
|
|
|
#
|
2014-02-20 08:12:19 -06:00
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
# DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
|
|
|
|
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2013-10-07 10:10:06 -05:00
|
|
|
|
|
|
|
package = @PACKAGE_NAME@
|
2015-03-26 16:09:02 -05:00
|
|
|
version = @PACKAGE_VERSION@@RELEASE_CANDIDATE@
|
2013-10-07 10:10:06 -05:00
|
|
|
tarname = @PACKAGE_TARNAME@
|
2014-03-05 03:09:51 -06:00
|
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
2013-10-07 10:10:06 -05:00
|
|
|
distdir = $(tarname)-$(version)
|
2014-02-24 13:53:14 -06:00
|
|
|
bintar = $(distdir)-bin.tar.gz
|
2013-10-07 10:10:06 -05:00
|
|
|
|
|
|
|
prefix = @prefix@
|
2014-03-06 10:43:18 -06:00
|
|
|
datarootdir=@datarootdir@
|
2013-10-07 10:10:06 -05:00
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
2014-03-05 03:09:51 -06:00
|
|
|
docdir = @docdir@
|
2013-10-07 10:10:06 -05:00
|
|
|
|
|
|
|
srcdir = @srcdir@
|
2014-02-25 16:12:55 -06:00
|
|
|
INSTALL = @INSTALL@
|
2013-10-07 10:10:06 -05:00
|
|
|
|
|
|
|
default:
|
2014-05-19 07:58:04 -05:00
|
|
|
cd src && $(MAKE) $@
|
2013-10-07 10:10:06 -05:00
|
|
|
|
2014-01-22 18:55:04 -06:00
|
|
|
all : default
|
2013-10-07 10:10:06 -05:00
|
|
|
|
2013-11-29 08:41:06 -06:00
|
|
|
install: all
|
2014-03-06 04:32:56 -06:00
|
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(docdir)
|
2014-05-21 08:42:58 -05:00
|
|
|
$(INSTALL) -m 644 $(srcdir)/AUTHORS $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/COPYING $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/INSTALL $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/LICENSE $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/NEWS $(DESTDIR)$(docdir)
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/README.md $(DESTDIR)$(docdir)
|
2014-03-06 04:32:56 -06:00
|
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(docdir)/spec
|
2014-05-21 08:42:58 -05:00
|
|
|
$(INSTALL) -m 644 $(srcdir)/spec/index.html $(DESTDIR)$(docdir)/spec
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/spec/getdns*tgz $(DESTDIR)$(docdir)/spec
|
2014-05-19 07:58:04 -05:00
|
|
|
cd src && $(MAKE) $@
|
|
|
|
cd doc && $(MAKE) $@
|
2014-02-20 04:52:57 -06:00
|
|
|
@echo "***"
|
|
|
|
@echo "*** !!! IMPORTANT !!!! libgetdns needs a DNSSEC trust anchor!"
|
|
|
|
@echo "***"
|
|
|
|
@echo "*** For the library to be able to perform DNSSEC, the root"
|
|
|
|
@echo "*** trust anchor needs to be present in presentation format"
|
|
|
|
@echo "*** in the file: "
|
|
|
|
@echo "*** @TRUST_ANCHOR_FILE@"
|
|
|
|
@echo "***"
|
|
|
|
@echo "*** We recomend using unbound-anchor to retrieve and install"
|
|
|
|
@echo "*** the root trust anchor like this: "
|
2014-03-24 11:49:59 -05:00
|
|
|
@echo "*** mkdir /etc/unbound"
|
2014-02-20 04:52:57 -06:00
|
|
|
@echo "*** unbound-anchor -a \"@TRUST_ANCHOR_FILE@\""
|
|
|
|
@echo "***"
|
|
|
|
@echo "*** We strongly recommend package maintainers to provide the"
|
|
|
|
@echo "*** root trust anchor by installing it with unbound-anchor"
|
|
|
|
@echo "*** at package installation time from the post-install script."
|
|
|
|
@echo "***"
|
2013-11-29 08:41:06 -06:00
|
|
|
|
|
|
|
uninstall:
|
2014-03-06 13:05:51 -06:00
|
|
|
rm -rf $(DESTDIR)$(docdir)
|
2014-05-19 07:58:04 -05:00
|
|
|
cd doc && $(MAKE) $@
|
|
|
|
cd src && $(MAKE) $@
|
2013-11-29 08:41:06 -06:00
|
|
|
|
2014-02-04 07:10:14 -06:00
|
|
|
doc: FORCE
|
2014-05-19 07:58:04 -05:00
|
|
|
cd doc && $(MAKE) $@
|
2013-11-21 19:39:03 -06:00
|
|
|
|
2014-01-27 18:32:54 -06:00
|
|
|
example:
|
2014-10-24 07:39:58 -05:00
|
|
|
cd spec/example && $(MAKE) $@
|
2014-01-27 18:32:54 -06:00
|
|
|
|
2013-11-29 09:24:39 -06:00
|
|
|
test:
|
2014-05-19 07:58:04 -05:00
|
|
|
cd src && $(MAKE) $@
|
2013-11-29 09:24:39 -06:00
|
|
|
|
2015-03-20 12:25:21 -05:00
|
|
|
getdns_query:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
|
2013-10-07 10:10:06 -05:00
|
|
|
clean:
|
2014-05-19 07:58:04 -05:00
|
|
|
cd src && $(MAKE) $@
|
|
|
|
cd doc && $(MAKE) $@
|
2014-10-24 07:39:58 -05:00
|
|
|
cd spec/example && $(MAKE) $@
|
2013-10-07 10:10:06 -05:00
|
|
|
rm -f *.o
|
|
|
|
|
2014-09-23 03:12:34 -05:00
|
|
|
depend:
|
|
|
|
cd src && $(MAKE) $@
|
|
|
|
|
2013-10-07 10:10:06 -05:00
|
|
|
distclean:
|
2014-05-19 07:58:04 -05:00
|
|
|
cd src && $(MAKE) $@
|
2014-05-21 08:42:58 -05:00
|
|
|
rmdir src 2>/dev/null || true
|
|
|
|
cd doc && $(MAKE) $@
|
|
|
|
rmdir doc 2>/dev/null || true
|
2014-10-24 07:39:58 -05:00
|
|
|
cd spec/example && $(MAKE) $@
|
2014-10-24 09:25:16 -05:00
|
|
|
rmdir spec/example 2>/dev/null || true
|
|
|
|
rmdir spec 2>/dev/null || true
|
2014-05-21 08:42:58 -05:00
|
|
|
rm -f config.log config.status Makefile libtool
|
2013-10-07 10:10:06 -05:00
|
|
|
rm -fR autom4te.cache
|
2015-07-19 10:52:09 -05:00
|
|
|
rm -f m4/libtool.m4
|
|
|
|
rm -f m4/lt~obsolete.m4
|
|
|
|
rm -f m4/ltoptions.m4
|
|
|
|
rm -f m4/ltsugar.m4
|
|
|
|
rm -f m4/ltversion.m4
|
2013-10-07 10:10:06 -05:00
|
|
|
|
2013-11-18 00:51:12 -06:00
|
|
|
dist: $(distdir).tar.gz
|
|
|
|
|
2014-02-24 13:53:14 -06:00
|
|
|
bindist: $(bintar)
|
|
|
|
|
|
|
|
$(bintar): $(distdir)
|
2014-05-21 08:42:58 -05:00
|
|
|
chown -R 0:0 $(distdir) 2>/dev/null || true
|
2014-02-24 13:53:14 -06:00
|
|
|
cd $(distdir); ./configure; make
|
|
|
|
tar chof - $(distdir) | gzip -9 -c > $@
|
|
|
|
rm -rf $(distdir)
|
|
|
|
|
2013-11-18 00:51:12 -06:00
|
|
|
$(distdir).tar.gz: $(distdir)
|
2014-05-21 08:42:58 -05:00
|
|
|
chown -R 0:0 $(distdir) 2>/dev/null || true
|
2013-11-18 00:51:12 -06:00
|
|
|
tar chof - $(distdir) | gzip -9 -c > $@
|
|
|
|
rm -rf $(distdir)
|
|
|
|
|
2014-01-22 18:55:04 -06:00
|
|
|
$(distdir):
|
2015-01-20 05:12:29 -06:00
|
|
|
mkdir -p $(distdir)/m4
|
2013-10-07 10:10:06 -05:00
|
|
|
mkdir -p $(distdir)/src
|
2013-11-18 00:51:12 -06:00
|
|
|
mkdir -p $(distdir)/src/getdns
|
|
|
|
mkdir -p $(distdir)/src/test
|
2014-02-04 03:14:46 -06:00
|
|
|
mkdir -p $(distdir)/src/extension
|
2014-10-27 09:48:25 -05:00
|
|
|
mkdir -p $(distdir)/src/compat
|
|
|
|
mkdir -p $(distdir)/src/util
|
|
|
|
mkdir -p $(distdir)/src/gldns
|
2013-11-29 08:41:06 -06:00
|
|
|
mkdir -p $(distdir)/doc
|
2014-02-20 07:07:04 -06:00
|
|
|
mkdir -p $(distdir)/spec
|
2014-10-24 07:39:58 -05:00
|
|
|
mkdir -p $(distdir)/spec/example
|
2013-10-07 10:10:06 -05:00
|
|
|
cp $(srcdir)/configure.ac $(distdir)
|
|
|
|
cp $(srcdir)/configure $(distdir)
|
2014-02-25 17:35:54 -06:00
|
|
|
cp $(srcdir)/AUTHORS $(distdir)
|
2014-02-24 13:53:14 -06:00
|
|
|
cp $(srcdir)/ChangeLog $(distdir)
|
|
|
|
cp $(srcdir)/COPYING $(distdir)
|
|
|
|
cp $(srcdir)/INSTALL $(distdir)
|
2014-02-25 17:35:54 -06:00
|
|
|
cp $(srcdir)/LICENSE $(distdir)
|
|
|
|
cp $(srcdir)/NEWS $(distdir)
|
|
|
|
cp $(srcdir)/README.md $(distdir)
|
2013-10-07 10:10:06 -05:00
|
|
|
cp $(srcdir)/Makefile.in $(distdir)
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/install-sh $(distdir)
|
|
|
|
cp $(srcdir)/config.sub $(distdir)
|
|
|
|
cp $(srcdir)/config.guess $(distdir)
|
2014-05-21 08:42:58 -05:00
|
|
|
cp libtool $(distdir)
|
2013-11-29 08:41:06 -06:00
|
|
|
cp $(srcdir)/ltmain.sh $(distdir)
|
2015-01-20 05:12:29 -06:00
|
|
|
cp $(srcdir)/m4/*.m4 $(distdir)/m4
|
2013-11-30 06:53:57 -06:00
|
|
|
cp $(srcdir)/src/*.in $(distdir)/src
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/src/*.[ch] $(distdir)/src
|
2014-05-26 08:29:06 -05:00
|
|
|
cp $(srcdir)/src/*.symbols $(distdir)/src
|
2014-01-22 18:55:04 -06:00
|
|
|
cp $(srcdir)/src/extension/*.[ch] $(distdir)/src/extension
|
2014-05-26 08:29:06 -05:00
|
|
|
cp $(srcdir)/src/extension/*.symbols $(distdir)/src/extension
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/src/getdns/*.in $(distdir)/src/getdns
|
2014-02-20 07:07:04 -06:00
|
|
|
cp $(srcdir)/src/getdns/getdns_*.h $(distdir)/src/getdns
|
2013-11-18 00:51:12 -06:00
|
|
|
cp $(srcdir)/src/test/Makefile.in $(distdir)/src/test
|
|
|
|
cp $(srcdir)/src/test/*.[ch] $(distdir)/src/test
|
2013-11-30 04:25:50 -06:00
|
|
|
cp $(srcdir)/src/test/*.sh $(distdir)/src/test
|
|
|
|
cp $(srcdir)/src/test/*.good $(distdir)/src/test
|
2014-10-27 09:48:25 -05:00
|
|
|
cp $(srcdir)/src/compat/*.[ch] $(distdir)/src/compat
|
|
|
|
cp $(srcdir)/src/util/*.[ch] $(distdir)/src/util
|
|
|
|
cp $(srcdir)/src/gldns/*.[ch] $(distdir)/src/gldns
|
2013-11-29 08:41:06 -06:00
|
|
|
cp $(srcdir)/doc/Makefile.in $(distdir)/doc
|
|
|
|
cp $(srcdir)/doc/*.in $(distdir)/doc
|
2014-02-20 07:07:04 -06:00
|
|
|
cp $(srcdir)/doc/manpgaltnames $(distdir)/doc
|
2014-10-24 07:39:58 -05:00
|
|
|
cp $(srcdir)/spec/*.html $(distdir)/spec
|
|
|
|
cp $(srcdir)/spec/*.tgz $(distdir)/spec
|
|
|
|
cp $(srcdir)/spec/example/Makefile.in $(distdir)/spec/example
|
|
|
|
cp $(srcdir)/spec/example/*.[ch] $(distdir)/spec/example
|
2014-11-07 08:18:32 -06:00
|
|
|
rm -f $(distdir)/Makefile $(distdir)/src/Makefile $(distdir)/src/getdns/getdns.h $(distdir)/spec/example/Makefile $(distdir)/src/test/Makefile $(distdir)/doc/Makefile $(distdir)/src/config.h
|
2013-10-07 10:10:06 -05:00
|
|
|
|
|
|
|
distcheck: $(distdir).tar.gz
|
|
|
|
gzip -cd $(distdir).tar.gz | tar xvf -
|
|
|
|
cd $(distdir) && ./configure
|
|
|
|
cd $(distdir) && $(MAKE) all
|
|
|
|
cd $(distdir) && $(MAKE) check
|
|
|
|
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
|
|
|
|
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
|
|
|
|
@remaining="`find $${PWD}/$(distdir)/_inst -type f | wc -l`"; \
|
|
|
|
if test "$${remaining}" -ne 0; then
|
|
|
|
echo "@@@ $${remaining} file(s) remaining in stage directory!"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
cd $(distdir) && $(MAKE) clean
|
|
|
|
rm -rf $(distdir)
|
|
|
|
@echo "*** Package $(distdir).tar.gz is ready for distribution"
|
|
|
|
|
2014-11-07 08:18:32 -06:00
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
2013-10-07 10:10:06 -05:00
|
|
|
./config.status $@
|
2014-01-22 18:55:04 -06:00
|
|
|
|
2013-10-07 10:10:06 -05:00
|
|
|
configure.status: configure
|
|
|
|
./config.status --recheck
|
|
|
|
|
2013-11-29 09:24:39 -06:00
|
|
|
.PHONY: all distclean clean default doc test
|
2014-02-04 07:10:14 -06:00
|
|
|
FORCE:
|