cleaning debian/rules from odds of configure-clean target
[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:
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
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
33         # Add here commands to install the package into debian/findit
34         python setup.py install --root $(CURDIR)/debian/findit
35
36 # Build architecture-independent files here.
37 binary-indep: build install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs 
41         dh_installdocs
42         dh_link
43         dh_compress
44         dh_fixperms
45         dh_installdeb
46         dh_gencontrol
47         dh_md5sums
48         dh_builddeb
49
50 # Build architecture-dependent files here.
51 binary-arch: build install
52
53 binary: binary-indep binary-arch
54 .PHONY: build clean binary-indep binary-arch binary install