3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23 # shared library versions, option 1
26 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
27 #version=`ls src/.libs/lib*.so.* | \
28 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
29 #major=`ls src/.libs/lib*.so.* | \
30 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
32 configure: configure-stamp
35 # Add here commands to configure the package.
41 build-stamp: configure-stamp
44 # Add here commands to compile the package.
52 rm -f build-stamp configure-stamp
54 # Add here commands to clean up after the build process.
66 # Add here commands to install the package into debian/tmp
67 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
68 cd debian/tmp && find . -name ".arch-ids" -exec rm -rf {} \;
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
75 # Build architecture-dependent files here.
76 binary-arch: build install
95 # dh_strip is broken on this package!
108 binary: binary-indep binary-arch
109 .PHONY: build clean binary-indep binary-arch binary install configure