File: rules

package info (click to toggle)
beets 1.3.19-2.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,964 kB
  • sloc: python: 32,440; xml: 334; sh: 235; makefile: 137
file content (39 lines) | stat: -rwxr-xr-x 883 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

%:
	dh $@ --with python2,sphinxdoc

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(CURDIR) $(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
	set -e -x; \
	for python in $(shell pyversions -r); do \
		HOME=$(CURDIR)/build/home \
		LC_ALL=C.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