# Copyright (C) 2011, 2012, 2017  Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# $Id$

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

# Attempt to disable parallel processing.
.NOTPARALLEL:
.NO_PARALLEL:
SUBDIRS =	@ATFBUILD@
TARGETS =       atf

@BIND9_MAKE_RULES@

#
# install ATF libraries, if configured with --with-atf
#
atf:
	@for i in ${ALL_SUBDIRS}; do \
		if [ "$$i" != "nulldir" -a -d $$i ]; then \
			(cd $$i; ${MAKE} ${MAKEDEFS} install) || exit 1; \
		fi; \
	done

clean distclean::
	rm -rf ./atf

distclean::
	rm unittest.sh
