fa35cde6d7ec4a80145303f8c17233074f56096b
[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 PACKAGE=findit
7
8 build:
9         dh_testdir
10
11         # Add here commands to compile the package.
12         mkdir -p $(CURDIR)/po/ru/
13         msgfmt $(CURDIR)/po/ru.po -o $(CURDIR)/po/ru/$(PACKAGE).mo
14         python setup.py build
15         touch $@
16
17 clean:
18         dh_testdir
19         dh_testroot
20         rm -rf $(CURDIR)/po/ru
21
22         # Add here commands to clean up after the build process.
23         python setup.py clean --all
24
25         dh_clean 
26
27 install: build
28         dh_testdir
29         dh_testroot
30         dh_clean -k 
31
32         # Add here commands to install the package into debian/findit
33         python setup.py install --root $(CURDIR)/debian/$(PACKAGE)
34
35 # Build architecture-independent files here.
36 binary-indep: build install
37         dh_testdir
38         dh_testroot
39         dh_installchangelogs 
40         dh_installdocs
41         dh_link
42         dh_compress
43         dh_fixperms
44         dh_installdeb
45         dh_gencontrol
46         dh_md5sums
47         dh_builddeb
48
49 # Build architecture-dependent files here.
50 binary-arch: build install
51
52 binary: binary-indep binary-arch
53
54 .PHONY: build clean binary-indep binary-arch binary install