File: rules

package info (click to toggle)
pysolfc 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 94,856 kB
  • sloc: python: 82,020; tcl: 4,529; makefile: 65; sh: 57; perl: 48
file content (19 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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.
execute_before_dh_auto_build:
	$(MAKE) rules all_games_html mo

execute_after_dh_install:
	# Avoid conflicting with the separate package pysolfc-cardsets.
	rm -r debian/pysolfc/usr/share/games/pysolfc/cardset-hanafuda-200-years/
	find debian -name Thumbs.db -print -delete