gui
[lbook_fbreader.git] / distributions / debian / desktop / rules
blob4655db6a55c6a12cd1c0679f0c23f348cf73b551
1 #!/usr/bin/make -f
3 clean:
4 dh_testdir
5 dh_testroot
6 [ ! -f Makefile ] || $(MAKE) distclean
7 dh_clean build-stamp install-stamp
9 build: build-stamp
10 build-stamp:
11 dh_testdir
12 $(MAKE) -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy
13 $(MAKE) -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy
14 $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=gtk
15 $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt
16 $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt4
17 $(MAKE) -C fbreader TARGET_ARCH=desktop UI_TYPE=dummy
18 touch build-stamp
20 install: install-stamp
21 install-stamp: DEB_DIR = $(CURDIR)/debian
22 install-stamp: build
23 dh_testdir
24 dh_testroot
25 dh_clean -k
26 dh_installdirs
27 $(MAKE) -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/libzlcore do_install
28 $(MAKE) -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/libzltext do_install
29 $(MAKE) -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/libzlcore-dev do_install_dev
30 $(MAKE) -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/libzltext-dev do_install_dev
31 $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=gtk DESTDIR=$(DEB_DIR)/libzlui-gtk do_install
32 $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt DESTDIR=$(DEB_DIR)/libzlui-qt do_install
33 $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt4 DESTDIR=$(DEB_DIR)/libzlui-qt4 do_install
34 $(MAKE) -C fbreader TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/fbreader do_install
35 touch install-stamp
37 binary-arch: VERSION=$(shell expr "`dpkg-parsechangelog |grep Version:`" : '.*Version: \(.*\)')
38 binary-arch: build install
39 dh_testdir
40 dh_testroot
41 dh_desktop
42 dh_installmenu
43 dh_installdocs
44 dh_installman fbreader/desktop/FBReader.1
45 dh_installchangelogs
46 dh_strip
47 dh_compress
48 dh_fixperms
49 dh_makeshlibs -plibzlcore -V"libzlcore (>= $(VERSION)),libzlcore(<< 0.10.0)"
50 dh_makeshlibs -plibzltext -V"libzltext (>= $(VERSION)),libzltext(<< 0.10.0)"
51 dh_installdeb
52 dh_shlibdeps -l debian/libzlcore/usr/lib:debian/libzltext/usr/lib
53 dh_gencontrol
54 dh_md5sums
55 dh_builddeb
57 binary-indep:
59 binary: binary-indep binary-arch
61 .PHONY: clean build install binary-indep binary-arch binary