~jbaker/storm/nose_plugin

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Jamu Kakar
  • Date: 2008-03-28 20:15:54 UTC
  • mfrom: (177.2.8 debian-package)
  • Revision ID: jkakar@kakar.ca-20080328201554-y4kwcmq7516uem58
Merged debian-package [r=michelp,niemeyer] [f=145883]

Debian packaging configuration has been added to Storm as the first
step in providing Storm packages built using Launchpad's PPA build
service.  The packaging files put in place are meant to be used with
AutoPPA to produce Storm packages for Ubuntu releases include dapper
and newer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
dist_release := $(shell lsb_release -cs)
 
4
ifneq ($(dist_release),dapper)
 
5
  use_pycentral = yes
 
6
endif
 
7
 
 
8
package = python-storm
 
9
root_dir = debian/$(package)
 
10
 
 
11
build: build-stamp
 
12
build-stamp:
 
13
        dh_testdir
 
14
        python setup.py build
 
15
        touch build-stamp
 
16
 
 
17
clean:
 
18
        dh_testdir
 
19
        dh_testroot
 
20
        rm -f build-stamp
 
21
        rm -rf build
 
22
        dh_clean
 
23
 
 
24
install: build
 
25
        dh_testdir
 
26
        dh_testroot
 
27
        dh_clean -k
 
28
        python setup.py install --root $(root_dir)
 
29
 
 
30
binary-indep: build install
 
31
 
 
32
binary-arch: build install
 
33
        dh_testdir
 
34
        dh_testroot
 
35
        dh_installdocs
 
36
        dh_installchangelogs
 
37
        dh_installinit
 
38
        dh_installdebconf
 
39
        dh_installlogrotate
 
40
        dh_compress
 
41
        dh_fixperms
 
42
 
 
43
ifeq ($(use_pycentral),yes)
 
44
        DH_PYCENTRAL=nomove dh_pycentral
 
45
else
 
46
        dh_python
 
47
endif
 
48
        dh_installdeb
 
49
        dh_gencontrol
 
50
        dh_md5sums
 
51
        dh_builddeb
 
52
 
 
53
binary: binary-indep binary-arch
 
54
 
 
55
.PHONY: binary binary-arch binary-indep clean