move eet to HEAD
[profile/ivi/eet.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatibility version to use.
9 export DH_COMPAT=3
10
11
12 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
13         CFLAGS += -g
14 endif
15 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
16         INSTALL_PROGRAM += -s
17 endif
18
19 version=`ls src/.libs/lib*.so.* | \
20  awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
21 major=`ls src/.libs/lib*.so.* | \
22  awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
23
24 build: build-stamp
25 build-stamp:
26         dh_testdir
27
28         ./configure --prefix=/usr build
29
30         touch build-stamp
31
32 clean:
33         dh_testdir
34         dh_testroot
35         rm -f build-stamp 
36
37         -./configure clean
38
39         dh_clean
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k
45         dh_installdirs
46
47         ./configure --prefix=$(CURDIR)/debian/tmp/usr install
48
49
50 binary-indep: build install
51
52 binary-arch: build install
53         dh_testdir
54         dh_testroot
55         dh_movefiles
56
57         dh_installdocs -plibeet0 README AUTHORS
58         dh_installdocs -plibeet0-dev
59         dh_installman -plibeet0 debian/eet.1
60         dh_installman -plibeet0-dev debian/eet-config.1
61         dh_installchangelogs 
62         dh_link
63         dh_strip
64         dh_compress
65         dh_fixperms
66         dh_makeshlibs
67         dh_installdeb
68         dh_shlibdeps
69         dh_gencontrol
70         dh_md5sums
71         dh_builddeb
72
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install