1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# SPDX-License-Identifier: MPL-2.0
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0.  If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12srcdir =	@srcdir@
13VPATH =		@srcdir@
14top_srcdir =	@top_srcdir@
15
16@BIND9_MAKE_INCLUDES@
17
18SUBDIRS	=	tests
19
20PYTHON	=	@PYTHON@
21
22PYSRCS =	__init__.py checkds.py coverage.py dnskey.py eventlist.py \
23		keydict.py keyevent.py keymgr.py keyseries.py keyzone.py \
24		policy.py rndc.py utils.py
25
26TARGETS =	parsetab.py
27
28@BIND9_MAKE_RULES@
29
30.SUFFIXES: .py .pyc
31.py.pyc:
32	$(PYTHON) -m compileall .
33
34parsetab.py: policy.py
35	$(PYTHON) policy.py parse /dev/null > /dev/null
36	PYTHONPATH=${srcdir} $(PYTHON) -m parsetab
37
38check test: subdirs
39
40clean distclean::
41	rm -f *.pyc parser.out parsetab.py
42	rm -rf __pycache__ build
43
44distclean::
45	rm -rf ${PYSRCS}
46