| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# This file was automatically generated by stdeb 0.10.0 at |
| 4 |
# Mon, 27 Sep 2021 17:18:36 +0200 |
| 5 |
export PYBUILD_NAME=django-phonenumber-field |
| 6 |
export PYBUILD_TEST_ARGS=--ds=tests.settings |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 10 |
|
| 11 |
execute_before_dh_auto_build: |
| 12 |
set -e; \ |
| 13 |
for loc in $(CURDIR)/phonenumber_field/locale/*; do \ |
| 14 |
python3 -m babel.messages.frontend compile --directory=$(CURDIR)/phonenumber_field/locale/ --locale=$$(basename $$loc) --domain=django; \ |
| 15 |
done |
| 16 |
|
| 17 |
execute_before_dh_sphinxdoc: |
| 18 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 19 |
PYTHONPATH=$(CURDIR) python3 -m sphinx -b html -N $(CURDIR)/docs/ $(CURDIR)/debian/python-django-phonenumber-field-doc/usr/share/doc/python-django-phonenumber-field-doc/html |
| 20 |
endif |