cleaned build-stamp 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 # We have nothing to do by default.
40
41 # Build architecture-dependent files here.
42 binary-arch: build install
43         dh_testdir
44         dh_testroot
45         dh_installchangelogs 
46         dh_installdocs
47         dh_installexamples
48         dh_installman
49         dh_link
50         dh_strip
51         dh_compress
52         dh_fixperms
53         dh_installdeb
54         dh_gencontrol
55         dh_md5sums
56         dh_builddeb
57
58 binary: binary-indep binary-arch
59 .PHONY: build clean binary-indep binary-arch binary install configure