Remove faulty "make clean" step from debian/rules
[ameter] / debian / rules
1 #!/usr/bin/make -f
2
3 APPNAME := ameter
4
5 # Uncomment this to turn on verbose mode.
6 export DH_VERBOSE=1
7
8 configure: configure-stamp
9 configure-stamp:
10         dh_testdir
11         qmake PREFIX=/usr $(APPNAME).pro
12         touch $@
13
14 build: build-stamp
15
16 build-stamp: configure-stamp  
17         dh_testdir
18         # Add here commands to compile the package.
19         $(MAKE) $(APPNAME)
20         touch $@
21
22 clean: 
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp configure-stamp
26
27         # Add here commands to clean up after the build process.
28         # $(MAKE) clean
29         rm -f $(APPNAME)
30         rm -f *.o
31         rm -f moc_*.cpp
32
33         dh_clean 
34
35 install: build
36         dh_testdir
37         dh_testroot
38         dh_clean -k
39         dh_installdirs
40
41         # Add here commands to install the package into debian/ameter.
42         $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
43
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47 # We have nothing to do by default.
48
49 # Build architecture-dependent files here.
50 binary-arch: build install
51         dh_testdir
52         dh_testroot
53         dh_installchangelogs 
54         dh_installdocs
55         dh_installexamples
56         dh_link
57         dh_strip
58         dh_compress
59         dh_fixperms
60         dh_installdeb
61         dh_shlibdeps # Uncomment this line for use without Qt Creator
62         dh_gencontrol
63         dh_md5sums
64         dh_builddeb
65
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install configure