Added Q_FUNC_INFO macros to some functions.
[qtrapids] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 # Maemo specific (Qt 4.6)
7 PATH:=/opt/qt4-maemo5/bin:$(PATH) 
8 export PATH 
9
10 CFLAGS = -Wall -g
11
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13         CFLAGS += -O0
14 else
15         CFLAGS += -O2
16 endif
17
18 configure:
19         dh_testdir
20         cmake .
21         touch $@
22  
23 build: configure
24         $(MAKE)
25         touch $@
26
27 clean:
28         dh_testdir
29         dh_testroot
30         -$(MAKE) clean
31         rm -f CMakeCache.txt
32         rm -rf `find -name CMakeFiles` 
33         rm -f configure
34         rm -f build
35         dh_clean 
36
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
43         dh_install --sourcedir=debian/tmp
44         
45 # Build architecture-independent files here.
46 binary-indep: install
47 # We have nothing to do by default.
48
49 # Build architecture-dependent files here.
50 binary-arch: install
51         dh_testdir
52         dh_testroot
53         dh_installchangelogs
54         dh_strip
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_shlibdeps
59         dh_gencontrol
60         dh_md5sums
61         maemo-optify
62         dh_builddeb
63
64 binary: binary-arch binary-indep
65 .PHONY: build clean binary-indep binary-arch binary install