| 1 |
#!/usr/bin/make -f |
| 2 |
# |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/pkg-info.mk |
| 7 |
|
| 8 |
export PYBUILD_NAME=django-reversion |
| 9 |
export PYBUILD_TEST_ARGS=--ds=test_project.settings |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
execute_before_dh_auto_build: |
| 15 |
set -e; \ |
| 16 |
for loc in reversion/locale/*; do \ |
| 17 |
python3 setup.py compile_catalog --directory reversion/locale/ --locale $$(basename $$loc) --domain django; \ |
| 18 |
done |
| 19 |
|
| 20 |
execute_before_dh_sphinxdoc: |
| 21 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 22 |
PYTHONPATH=$(CURDIR) python3 -m sphinx -D today="$(BUILD_DATE)" -b html -N $(CURDIR)/docs/ $(CURDIR)/debian/python-django-reversion-doc/usr/share/doc/python-django-reversion-doc/html |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_installchangelogs: |
| 26 |
dh_installchangelogs CHANGELOG.rst |
| 27 |
|
| 28 |
execute_after_dh_clean: |
| 29 |
rm -rf docs/.build |