3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
9 # Force compat level four
12 # These are used for cross-compiling and for saving the configure script
13 # from having to guess our platform (since we know it already)
14 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
20 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
29 # shared library versions, option 1
32 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
33 #version=`ls src/.libs/lib*.so.* | \
34 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
35 #major=`ls src/.libs/lib*.so.* | \
36 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
38 config.status: configure
40 # Add here commands to configure the package.
41 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared --with-yaz=/usr/bin
45 build-stamp: config.status
48 # Add here commands to compile the package.
58 # Add here commands to clean up after the build process.
60 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
61 cp -f /usr/share/misc/config.sub config.sub
63 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
64 cp -f /usr/share/misc/config.guess config.guess
76 # Add here commands to install the package into debian/tmp
77 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
80 # Build architecture-independent files here.
81 binary-indep: build install
82 # We have nothing to do by default.
84 # Build architecture-dependent files here.
85 binary-arch: build install
88 cp LICENSE debian/copyright
89 dh_installdocs -A README
90 dh_installchangelogs NEWS
93 mv debian/tmp/usr/share/doc/yazpp debian/tmp/usr/share/doc/yazpp-doc
111 dh_makeshlibs -V 'libyazpp1 (>= 1.0.1)'
113 dh_shlibdeps -l debian/libyazpp1/usr/lib
118 binary: binary-indep binary-arch
119 .PHONY: build clean binary-indep binary-arch binary install