6 [ ! -f Makefile
] ||
$(MAKE
) distclean
7 dh_clean build-stamp install-stamp
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
20 install: install-stamp
21 install-stamp
: DEB_DIR
= $(CURDIR
)/debian
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
37 binary-arch
: VERSION
=$(shell expr
"`dpkg-parsechangelog |grep Version:`" : '.*Version: \(.*\)')
38 binary-arch
: build
install
44 dh_installman fbreader
/desktop
/FBReader
.1
49 dh_makeshlibs
-plibzlcore
-V
"libzlcore (>= $(VERSION)),libzlcore(<< 0.10.0)"
50 dh_makeshlibs
-plibzltext
-V
"libzltext (>= $(VERSION)),libzltext(<< 0.10.0)"
52 dh_shlibdeps
-l debian
/libzlcore
/usr
/lib
:debian
/libzltext
/usr
/lib
59 binary
: binary-indep binary-arch
61 .PHONY
: clean build
install binary-indep binary-arch binary