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 # shared library versions, option 1
15 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
16 #version=`ls lib/lib*.so.* | \
17 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
18 #major=`ls lib/lib*.so.* | \
19 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
26 # Add here commands to compile the package.
36 # Add here commands to clean up after the build process.
47 # Add here commands to install the package into debian/tmp.
48 $(MAKE) install_debian DESTDIR=`pwd`/debian/tmp
49 #(cd debian/tmp;mv usr/doc/libcomedi usr/share/doc/libcomedi-dev;rmdir usr/doc)
52 # Build architecture-independent files here.
53 binary-indep: build install
54 # We have nothing to do by default.
56 # Build architecture-dependent files here.
57 binary-arch: build install
62 # build libcomedi${major} package by moving files from comedilib-dev
64 dh_movefiles -plibcomedi$(major) \
65 usr/lib/libcomedi.so.$(version) \
66 usr/lib/libcomedi.so.$(major) \
67 usr/sbin/comedi_config \
68 usr/bin/comedi_calibrate
78 dh_installmanpages -plibcomedi0
80 (cd debian/tmp/usr/share && rm -rf man)
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install