File: rules

package info (click to toggle)
django-celery 3.1.17-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 916 kB
  • ctags: 1,135
  • sloc: python: 4,149; makefile: 88; sh: 64
file content (33 lines) | stat: -rwxr-xr-x 818 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
#!/usr/bin/make -f

export PYBUILD_NAME=django-celery

%:
	dh $@ --with python2,python3,sphinxdoc  --buildsystem=pybuild

.PHONY: override_dh_installman
override_dh_installman:
	set -e ; \
	for doc in djcelerymon; do \
	  docbook-to-man debian/manpage.$$doc.sgml > $$doc.1; \
	done
	dh_installman

.PHONY: override_dh_auto_build
override_dh_auto_build:
	PYTHONPATH=. DEB_BUILD_ISSUES=disabled DJANGO_SETTINGS_MODULE=tests.settings sphinx-build -b html -d .build/.doctrees -N docs .build/html
	dh_auto_build

.PHONY: override_dh_compress
override_dh_compress:
	dh_compress -X .js -X .html

.PHONY: override_dh_auto_test
override_dh_auto_test:
	DEB_NETWORK_TESTS=disabled \
	dh_auto_test -- --system=custom --test-args="{interpreter} setup.py test"

.PHONY: override_dh_clean
override_dh_clean:
	rm -rf .build
	dh_clean