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
14 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
15 version=`ls src/.libs/lib*.so.* | \
16 awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
17 major=`ls src/.libs/lib*.so.* | \
18 awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
20 configure: configure-stamp
23 # Add here commands to configure the package.
24 ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
28 build: configure-stamp build-stamp
32 # Add here commands to compile the package.
40 rm -f build-stamp configure-stamp
42 # Add here commands to clean up after the build process.
53 # Add here commands to install the package into debian/minidom.
54 $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
57 # Build architecture-independent files here.
58 binary-indep: build install
59 # We have nothing to do by default.
61 # Build architecture-dependent files here.
62 binary-arch: build install
67 # build libminidom${major} package by moving files from minidom-dev
69 # dh_movefiles -plibminidom$(major) \
70 # usr/lib/libminidom.so.$(major) \
71 # usr/lib/libminidom.so.$(version)
72 # dh_movefiles get file contents from debian/*.files
86 dh_installchangelogs ChangeLog
91 # You may want to make some executables suid here.
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install configure