#!/usr/bin/make -f

export PYBUILD_INSTALL_ARGS = --install-scripts /usr/share/games/pysolfc \
                              --install-lib /usr/share/games/pysolfc
export PYBUILD_TEST_ARGS = -k 'not test_main'

%:
	dh $@ --buildsystem=pybuild

# In this context, 'rules' are solitaire game rules in html form,
# 'all_games_html' is an index of the games, and 'mo' builds localization.
# The rest is handled by pybuild.
override_dh_auto_build:
	$(MAKE) rules all_games_html mo
	dh_auto_build

override_dh_install:
	dh_install
	# Avoid conflicting with the separate package pysolfc-cardsets.
	rm -r debian/pysolfc/usr/share/games/pysolfc/cardset-hanafuda-200-years/
