2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 # This is the debhelper compatability version to use.
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 --host=$(DEB_HOST_GNU_TYPE) \
27 --build=$(DEB_BUILD_GNU_TYPE) \
29 --mandir=\$${prefix}/share/man \
30 --datadir=\$${prefix}/share/doc/ \
32 --localstatedir=/var/lib/libcomedi0 \
33 --disable-dependency-tracking
54 $(MAKE) install prefix=`pwd`/debian/tmp/usr \
55 pkgdatadir=`pwd`/debian/tmp/usr/share/doc/libcomedi0 \
56 sysconfdir=`pwd`/debian/tmp/etc \
57 localstatedir=`pwd`/debian/tmp/var
59 cd debian/tmp/usr/share/doc && ln -s libcomedi0 libcomedi-dev
61 binary-indep: build install
63 binary-arch: build install
68 # build libcomedi${major} package by moving files from comedilib-dev
91 dh_shlibdeps -l`pwd`/debian/tmp/usr/lib/
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install