~barry/bzr-builddeb/609186-urls

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: James Westby
  • Date: 2007-07-10 20:52:45 UTC
  • Revision ID: jw+debian@jameswestby.net-20070710205245-m8xq3c07ran3yj0k
Add the user manual.

  * The user manual is now the authoratitive documentation, rather than the
    rather short README.
  * It is only provided in html at the moment due to it being in several
    pieces and docutils not being able to link the pieces dynamically
    depending on the output type.
  * Thanks to Robey Pointer for the colour scheme.
  * Register the user manual with doc base rather than the README.

Other changes

  * Add dependency on bzrtools.
  * Bump required version of bzr for the testsuite failures that are fixed in
    0.18.
  * Actually call dh_install, and use it for the docs so that they can go in
    a subdir.
  * Add nocheck and notest DEBBUILDOPTS support to avoid running the testsuite
    during the build. My laptop is pleased.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
PYVERS=$(shell pyversions -vr)
8
8
 
9
 
build: $(PYVERS:%=build-python%)
 
9
doc_dir=doc/user_manual/
 
10
rst_docs=$(wildcard $(addsuffix /*.rst, $(doc_dir)))
 
11
html_docs=$(patsubst %.rst, %.html, $(rst_docs))
 
12
 
 
13
%.html: %.rst
 
14
        rst2html --stylesheet-path=$(doc_dir)/user_manual.css $< > $@
 
15
 
 
16
docs: $(html_docs)
 
17
 
 
18
build: $(PYVERS:%=build-python%) docs
10
19
        rst2html README > README.html
11
20
        touch $@
12
21
 
13
22
build-python%:
14
23
        python$* setup.py build
 
24
ifeq (,$(findstring nocheck,$(DEBBUILDOPTS)))
 
25
ifeq (,$(findstring notest,$(DEBBUILDOPTS)))
15
26
        python$* __init__.py
 
27
endif
 
28
endif
16
29
        touch $@
17
30
 
18
31
clean:
38
51
binary-indep: build install
39
52
        dh_testdir
40
53
        dh_testroot
 
54
        dh_install
41
55
        dh_installchangelogs
42
56
        dh_installdocs
43
57
        dh_installexamples