File: rules

package info (click to toggle)
beets 1.0~b14-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,876 kB
  • sloc: python: 12,200; makefile: 136
file content (42 lines) | stat: -rwxr-xr-x 1,002 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

%:
	dh $@ --with python2,sphinxdoc

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C docs html man BUILDDIR=$(CURDIR)/build/docs

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Tests (non-destructively) open the database
	mkdir -p build/home
	# Tests need UTF-8 locale
	mkdir -p build/locale
	localedef -f UTF-8 -i en_US build/locale/en_US.UTF-8/
	set -e -x; \
	for python in $(shell pyversions -r); do \
		HOME=$(CURDIR)/build/home \
		LOCPATH=$(CURDIR)/build/locale LC_ALL=en_US.UTF-8 \
		$$python setup.py test; \
	done
endif

override_dh_auto_install:
	dh_auto_install -- --install-lib=/usr/share/beets/

override_dh_install:
	dh_install
	mv debian/beets/usr/bin/beet debian/beets/usr/share/beets
	dh_link /usr/share/beets/beet /usr/bin/beet

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build
	rm -rf beets.egg-info

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog.rst

override_dh_compress:
	dh_compress -X.html -X.txt -X.inv