# This is the src/DataViews level Makefile for Gramps
# We could use GNU make's ':=' syntax for nice wildcard use,
# but that is not necessarily portable.
# If not using GNU make, then list all .py files individually

pkgdatadir = $(datadir)/@PACKAGE@/gui/views/treemodels

pkgdata_PYTHON = \
	__init__.py \
	eventmodel.py \
	familymodel.py \
	flatbasemodel.py \
	mediamodel.py \
	notemodel.py \
	peoplemodel.py \
	placemodel.py \
	repomodel.py \
	sourcemodel.py \
	citationbasemodel.py \
	citationlistmodel.py \
	citationtreemodel.py \
	treebasemodel.py

pkgpyexecdir = @pkgpyexecdir@/gui/views/treemodels
pkgpythondir = @pkgpythondir@/gui/views/treemodels

# Clean up all the byte-compiled files
MOSTLYCLEANFILES = *pyc *pyo

GRAMPS_PY_MODPATH = "../"

pycheck: 
	(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
	pychecker $(pkgdata_PYTHON));

pylint:
	PYTHONPATH=$(GRAMPS_PY_MODPATH) pylint $(pkgdata_PYTHON) > pylint.out
