File: rules

package info (click to toggle)
bzr-git 0.6.13+bzr1650-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 856 kB
  • sloc: python: 10,940; makefile: 67; sh: 16
file content (21 lines) | stat: -rwxr-xr-x 561 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
#!/usr/bin/make -f

%:
	dh $* --buildsystem=python_distutils --with python2

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
CONCURRENCY = BZR_CONCURRENCY=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif

override_dh_auto_clean:
	dh_auto_clean
	find . -name "*.pyc" -print0 | xargs -0 rm -f

ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	$(CONCURRENCY) BZR_PLUGINS_AT=git@$(CURDIR) /usr/bin/bzr selftest --parallel=fork \
	    -v -s bp.git
endif

override_dh_installchangelogs:
	dh_installchangelogs NEWS