summaryrefslogtreecommitdiffstats
path: root/python/Makefile.am
blob: 803fb0c0db4b872952b303fcfef1b668250995ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# Copyright 2023 the Pacemaker project contributors
#
# The version control history for this file may have further details.
#
# This source code is licensed under the GNU General Public License version 2
# or later (GPLv2+) WITHOUT ANY WARRANTY.
#

MAINTAINERCLEANFILES    = Makefile.in

EXTRA_DIST = pylintrc

SUBDIRS	= pacemaker \
	  tests

.PHONY: check-local
check-local:
	if [ "x$(top_srcdir)" != "x$(top_builddir)" ]; then \
		cp -r $(top_srcdir)/python/* $(abs_top_builddir)/python/; \
	fi
	PYTHONPATH=$(top_builddir)/python $(PYTHON) -m unittest discover -v -s $(top_builddir)/python/tests

.PHONY: pylint
pylint:
	pylint $(SUBDIRS)