9d69f4ff309d3b2a25c0a8b560a5daa4361a2373
[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 $(CURDIR)/ru
13         mkdir $(CURDIR)/ru/LC_MESSAGES
14         touch $(CURDIR)/ru/LC_MESSAGES/findit.mo
15         msgfmt ru.po -o $(CURDIR)/ru/LC_MESSAGES/findit.mo
16         python setup.py build
17         #docbook-to-man debian/findit.sgml > findit.1
18
19         touch $@
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp configure-stamp
25         rm -rf $(CURDIR)/ru
26
27         # Add here commands to clean up after the build process.
28         python setup.py clean --all
29
30         dh_clean 
31
32 install: build
33         dh_testdir
34         dh_testroot
35         dh_clean -k 
36         dh_installdirs
37
38         # Add here commands to install the package into debian/findit
39         python setup.py install --root $(CURDIR)/debian/findit
40
41 # Build architecture-independent files here.
42 binary-indep: build install
43 # We have nothing to do by default.
44
45 # Build architecture-dependent files here.
46 binary-arch: build install
47         dh_testdir
48         dh_testroot
49         dh_installchangelogs 
50         dh_installdocs
51         dh_installexamples
52         dh_installman
53         dh_link
54         dh_strip
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install configure