File: rules

package info (click to toggle)
python-django-registration 2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 828 kB
  • sloc: python: 1,573; makefile: 85
file content (26 lines) | stat: -rwxr-xr-x 597 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
#!/usr/bin/make -f

PKGS = $(shell dh_listpackages)

export PYBUILD_NAME=django-registration

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

override_dh_auto_clean:
	rm -rf docs/_build/
	dh_auto_clean

override_dh_auto_build:
	cd registration && /usr/bin/django-admin compilemessages
	cd docs && $(MAKE) html
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	# Drop .po files and keep only .mo files (compiled)
	$(foreach P,$(PKGS),find debian/$(P)/ -name '*.po' -exec rm -v {} \; ;)

# See docs/faq.rst
override_dh_auto_test:
	PYTHONPATH=. python3 ./registration/runtests.py