File: rules

package info (click to toggle)
dosage 2.15-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,396 kB
  • ctags: 3,898
  • sloc: python: 12,074; makefile: 148; sh: 56
file content (35 lines) | stat: -rwxr-xr-x 854 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
#!/usr/bin/make -f

%:
	dh $@ --with python2

override_dh_auto_configure:
# make sure the manifest is built
	python setup.py sdist --manifest-only

override_dh_auto_build:
# force usage of setup.py over Makefile
	dh_auto_build --buildsystem python_distutils

override_dh_installchangelogs:
# install custom changelog
	dh_installchangelogs doc/changelog.txt

ROOTDIR=$(CURDIR)/debian/dosage

override_dh_auto_install:
# force usage of setup.py over Makefile
	dh_auto_install --buildsystem python_distutils
# install bash_completion script
	install -m 644 doc/dosage-completion $(ROOTDIR)/usr/share/bash-completion/completions

override_dh_clean:
# clean generated files
	dh_clean _Dosage_configdata.py

override_dh_auto_test:
# do not run test suite when building

override_dh_builddeb:
# use xz for debian binary package compression
	dh_builddeb -- -Zxz