1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/usr/bin/make -f
PKG = $(shell dh_listpackages)
%:
dh $@ --with python2,sphinxdoc
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)
find debian/$(PKG)/ -name '*.po' -exec rm {} \;
override_dh_auto_test:
PYTHONPATH=. DJANGO_SETTINGS_MODULE=registration.tests.settings python /usr/bin/django-admin test registration.tests
|