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 # Force compat level four
11 # Ignore CVS information
12 export DH_ALWAYS_EXCLUDE=CVS
14 # This has to be exported to make some magic below work.
21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
30 # shared library versions, option 1
33 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
34 #version=`ls src/.libs/lib*.so.* | \
35 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
36 #major=`ls src/.libs/lib*.so.* | \
37 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
39 configure: configure-stamp
42 # Add here commands to configure the package.
43 ./configure --prefix=$(CURDIR)/debian/tmp/usr
48 build-stamp: configure-stamp
51 # Add here commands to compile the package.
59 rm -f build-stamp configure-stamp
61 # Add here commands to clean up after the build process.
72 # Add here commands to install the package into debian/tmp
73 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
76 # Build architecture-independent files here.
77 binary-indep: build install
78 # We have nothing to do by default.
80 # Build architecture-dependent files here.
81 binary-arch: build install
87 # dh_install maybe wrong place here?? moved to
111 binary: binary-indep binary-arch
112 .PHONY: build clean binary-indep binary-arch binary install configure