chiark / gitweb /
05e0fc05578a12dfe6559520eb9da614ea93da45
[getdate-python] / debian / rules
1 #! /usr/bin/make -f
2
3 export DH_COMPAT = 4
4
5 build: build-stamp
6
7 build-stamp:
8         python setup.py build
9         touch build-stamp
10
11 clean:
12         dh_clean
13         rm -rf build build-stamp
14
15 install: build
16         dh_clean
17         python setup.py build
18         python setup.py install --root=debian/python-getdate
19
20 binary-arch: install
21         dh_testdir -a
22         dh_testroot -a
23         dh_compress -a
24         dh_installdocs -a
25         dh_strip -a
26         dh_shlibdeps -a
27         dh_python -a
28         dh_gencontrol -a
29         dh_fixperms -a
30         dh_installdeb -a
31         dh_md5sums -a
32         dh_builddeb -a
33
34 binary: binary-arch
35
36 source:
37         rm -rf dist/*.tar.gz dist/=deb=
38         python$(DEFVERSION) setup.py sdist
39         mkdir dist/=deb=
40         cd dist/=deb=; tar xvfz ../*.tar.gz
41         d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/dist/=deb=/*
42         rm -rf dist/=deb=
43
44 .PHONY: binary binary-arch binary-indep clean install source build