~james-w/ubuntu/lucid/python-django/fix-contrib-auth

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-08-14 08:06:29 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20090814080629-r0xtg8u9vqb14ysz
Tags: 1.1-2
* Run testsuite on build.
* Use "--with quilt" over specifying $(QUILT_STAMPFN)/unpatch dependencies.
* Override clean target correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/quilt/quilt.make
4
3
include /usr/share/python/python.mk
5
4
 
6
5
PREFIX = debian/python-django
7
6
DJANGO_DIR = $(PREFIX)/$(call py_libdir_sh,`pyversions -d`)/django
8
7
 
9
8
%:
10
 
        dh $@
11
 
 
12
 
build: $(QUILT_STAMPFN)
13
 
        dh $@
14
 
 
15
 
clean: unpatch
16
 
        rm -rf docs.debian
17
 
        dh $@
 
9
        dh --with quilt $@
 
10
 
 
11
override_dh_auto_clean:
 
12
        rm -rf docs.debian testproject
 
13
        dh_auto_clean
18
14
 
19
15
override_dh_auto_build:
20
16
        dh_auto_build
27
23
        make -C docs.debian html
28
24
        rm -rf docs.debian/_build/html/_sources/
29
25
 
 
26
override_dh_auto_test:
 
27
        PYTHONPATH=. django/bin/django-admin.py startproject testproject
 
28
        sed -i "s|DATABASE_ENGINE = ''|DATABASE_ENGINE = 'sqlite3'|" testproject/settings.py
 
29
        PYTHONPATH=. tests/runtests.py --settings=testproject.settings --verbosity=2
 
30
 
30
31
override_dh_install:
31
32
        dh_install
32
33