File: rules

package info (click to toggle)
python-django-extensions 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,820 kB
  • sloc: python: 18,601; javascript: 7,354; makefile: 108; xml: 17
file content (20 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export PYBUILD_NAME=django-extensions
export PYBUILD_TEST_ARGS=--no-cov django_extensions tests

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


execute_after_dh_auto_build-indep:
	mkdir docs/images
	ln debian/images/* docs/images
	PYTHONPATH=. python3 -m sphinx -b html -N docs docs/.build/html

execute_before_dh_auto_build:
	$(MAKE) compile-catalog

execute_before_dh_clean:
	rm -rf docs/.build docs/images
	rm -f django_extensions/locale/*/LC_MESSAGES/django.mo