657d415bbc0d04cdeaef5e89a96da47cab2fcdca
[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         rm -rf $(CURDIR)/$(PACKAGE).egg-info/
26
27         dh_clean 
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k 
33
34         # Add here commands to install the package into debian/findit
35         python setup.py install --root $(CURDIR)/debian/$(PACKAGE)
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_link
44         dh_compress
45         dh_fixperms
46         dh_installdeb
47         dh_gencontrol
48         dh_md5sums
49         dh_builddeb
50
51 # Build architecture-dependent files here.
52 binary-arch: build install
53
54 binary: binary-indep binary-arch
55
56 .PHONY: build clean binary-indep binary-arch binary install