moved commands from binary-arch to binary-indep target in debian/rules
[findit] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 build: build-stamp
7
8 build-stamp: configure-stamp
9         dh_testdir
10
11         # Add here commands to compile the package.
12         mkdir -p $(CURDIR)/ru/LC_MESSAGES
13         msgfmt ru.po -o $(CURDIR)/ru/LC_MESSAGES/findit.mo
14         python setup.py build
15         touch $@
16
17 clean:
18         dh_testdir
19         dh_testroot
20         rm -f build-stamp configure-stamp
21         rm -rf $(CURDIR)/ru
22
23         # Add here commands to clean up after the build process.
24         python setup.py clean --all
25
26         dh_clean 
27
28 install: build
29         dh_testdir
30         dh_testroot
31         dh_clean -k 
32         dh_installdirs
33
34         # Add here commands to install the package into debian/findit
35         python setup.py install --root $(CURDIR)/debian/findit
36
37 # Build architecture-independent files here.
38 binary-indep: build install
39         dh_testdir
40         dh_testroot
41         dh_installchangelogs 
42         dh_installdocs
43         dh_installexamples
44         dh_installman
45         dh_link
46         dh_strip
47         dh_compress
48         dh_fixperms
49         dh_installdeb
50         dh_gencontrol
51         dh_md5sums
52         dh_builddeb
53
54 # Build architecture-dependent files here.
55 binary-arch: build install
56
57 binary: binary-indep binary-arch
58 .PHONY: build clean binary-indep binary-arch binary install