66e599a0042f41dfa32d93cadb68e3016704bac6Tinderbox User# Copyright (C) 2012-2014, 2016, 2017 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewssrcdir = @srcdir@
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark AndrewsVPATH = @srcdir@
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewstop_srcdir = @top_srcdir@
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews@BIND9_MAKE_INCLUDES@
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark AndrewsPYTHON = @PYTHON@
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan HuntSUBDIRS = isc
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan HuntTARGETS = dnssec-checkds dnssec-coverage dnssec-keymgr
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan HuntPYSRCS = dnssec-checkds.py dnssec-coverage.py dnssec-keymgr.py
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan HuntMANPAGES = dnssec-checkds.8 dnssec-coverage.8 dnssec-keymgr.8
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan HuntHTMLPAGES = dnssec-checkds.html dnssec-coverage.html dnssec-keymgr.html
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark AndrewsMANOBJS = ${MANPAGES} ${HTMLPAGES}
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews@BIND9_MAKE_RULES@
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Huntdnssec-checkds: dnssec-checkds.py
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Hunt cp -f dnssec-checkds.py dnssec-checkds
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Hunt chmod +x dnssec-checkds
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Hunt
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Huntdnssec-coverage: dnssec-coverage.py
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Hunt cp -f dnssec-coverage.py dnssec-coverage
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Hunt chmod +x dnssec-coverage
8dba0e7d87d192deef8b2aac197e4f508043a30cEvan Hunt
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Huntdnssec-keymgr: dnssec-keymgr.py
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt cp -f dnssec-keymgr.py dnssec-keymgr
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt chmod +x dnssec-keymgr
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewsdoc man:: ${MANOBJS}
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewsdocclean manclean maintainer-clean::
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews rm -f ${MANOBJS}
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewsinstalldirs:
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewsinstall:: ${TARGETS} installdirs
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt ${INSTALL_SCRIPT} dnssec-checkds ${DESTDIR}${sbindir}
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt ${INSTALL_SCRIPT} dnssec-coverage ${DESTDIR}${sbindir}
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt ${INSTALL_SCRIPT} dnssec-keymgr ${DESTDIR}${sbindir}
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews ${INSTALL_DATA} ${srcdir}/dnssec-checkds.8 ${DESTDIR}${mandir}/man8
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt ${INSTALL_DATA} ${srcdir}/dnssec-coverage.8 ${DESTDIR}${mandir}/man8
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt ${INSTALL_DATA} ${srcdir}/dnssec-keymgr.8 ${DESTDIR}${mandir}/man8
4840ef4581a577a29a18d180b6bc2e7355378ed7Mark Andrews if test -n "${PYTHON}" ; then \
4840ef4581a577a29a18d180b6bc2e7355378ed7Mark Andrews if test -n "${DESTDIR}" ; then \
a22c3cf51567651f74aee5c263c597b8d752c2ccMichał Kępień ${PYTHON} ${srcdir}/setup.py install --root=${DESTDIR} --prefix=${prefix} @PYTHON_INSTALL_LIB@ ; \
4840ef4581a577a29a18d180b6bc2e7355378ed7Mark Andrews else \
a22c3cf51567651f74aee5c263c597b8d752c2ccMichał Kępień ${PYTHON} ${srcdir}/setup.py install --prefix=${prefix} @PYTHON_INSTALL_LIB@ ; \
e3efc855f9f0acc9b14bb8e9c833e0fa209068b6Mark Andrews fi ; \
9f5909ed8c081c967db85a443bb366331993c455Mark Andrews rm -rf build ; \
4840ef4581a577a29a18d180b6bc2e7355378ed7Mark Andrews fi
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews
8a5809527e6c85e39699901712a455d5480907c1Evan Huntuninstall::
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt rm -f ${DESTDIR}${mandir}/man8/dnssec-keymgr.8
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt rm -f ${DESTDIR}${mandir}/man8/dnssec-coverage.8
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt rm -f ${DESTDIR}${mandir}/man8/dnssec-checkds.8
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt rm -f ${DESTDIR}${sbindir}/dnssec-keymgr
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt rm -f ${DESTDIR}${sbindir}/dnssec-coverage
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt rm -f ${DESTDIR}${sbindir}/dnssec-checkds
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt # only manually uninstall for the python package itself
8a5809527e6c85e39699901712a455d5480907c1Evan Hunt
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrewsclean distclean::
1cefb9df3fa34d08734f29005cfafa6be5cf3e93Mark Andrews rm -f ${TARGETS}
470af54b4ec7ab38ad10a5bd22a0a20664838c99Evan Hunt rm -rf build
c3b9fad5e3be639c9b36ff0ac921c30133da395cMar Andrews
c3b9fad5e3be639c9b36ff0ac921c30133da395cMar Andrewsdistclean::
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt rm -f dnssec-checkds.py dnssec-coverage.py dnssec-keymgr.py