blob: e1368bc95e4cea5df53d8bffd82d16dda07050a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
# shared library versions, option 1
#version=2.0.5
#major=2
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
#version=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
#major=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/rules/utils.mk
DEB_MAKE_INVOKE := $(MAKE)
DEB_MAKE_INSTALL_TARGET := INSTALL_ROOT=$(DEB_DESTDIR) install
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
#DEB_DH_INSTALL_ARGS := --list-missing
common-configure-arch:: configure-stamp
configure-stamp:
qmake QMF_INSTALL_ROOT=/usr CONFIG+=release
touch $@
clean::
# Clean extra stuff missed
# Delete all Makefiles
find $(CURDIR) -name Makefile \
-print0 | xargs -0 rm -rf
# Leftover files and all symlinks
find \( -false \
-o -name \*.so \
-o -name \*.so.* \
-o -type l \
\) -print0 | xargs -0 rm -rf
# Any remaining executables
find $(CURDIR) -type f -exec file -i '{}' \; | grep \
-e application/x-executable \
| cut -d ':' -f 1 | xargs rm -f
# Misc. directories
rm -rf \
src/libraries/messageserver/pkgconfig/ \
src/libraries/qmfutil/pkgconfig/ \
src/libraries/qtopiamail/pkgconfig/ \
;
rm -f .qmake.cache
rm -f configure-stamp
rm -f src/libraries/messageserver/libmessageserver.prl
rm -f src/libraries/qmfutil/libqmfutil.prl
rm -f src/libraries/qtopiamail/libqtopiamail.prl
install:
mkdir -p $(CURDIR)/debian/tmp/usr/tests
cp $(CURDIR)/debian/runtests.sh $(CURDIR)/debian/tmp/usr/tests/.
chmod 755 $(CURDIR)/debian/tmp/usr/tests/runtests.sh
cp $(CURDIR)/debian/test_script.sh $(CURDIR)/debian/tmp/usr/tests/.
chmod 755 $(CURDIR)/debian/tmp/usr/tests/test_script.sh
|