~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Jamu Kakar
  • Date: 2007-09-27 23:28:23 UTC
  • mto: This revision was merged to the branch mainline in revision 218.
  • Revision ID: jkakar@kakar.ca-20070927232823-7wlhc6kz8jvyzdok
- Added Debian packaging files.

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 = 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