3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
17 ifneq (,$(findstring noopt,$(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 destdir=$(CURDIR)/debian/tmp
34 configure: configure-stamp
37 # # Add here commands to configure the package.
42 build-stamp: configure-stamp
44 # # Add here commands to compile the package.
51 rm -f build-stamp configure-stamp
52 # # Add here commands to clean up after the build process.
61 # # Add here commands to install the package into debian/tmp
62 scons install_all final=1\
63 PREFIX='$(destdir)/usr' \
64 DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc'
65 # We need to install the example sourcecode
66 find Examples \( -name "*.hh" -o -name "*.cc" \) -printf "%P\n" | \
68 dir="$(destdir)/usr/share/doc/libsenf-doc/examples/$$(dirname "$$src")"; \
70 cp "Examples/$$src" "$$dir"; \
73 # Build architecture-independent files here.
74 binary-indep: build install
75 # We have nothing to do by default.
77 # Build architecture-dependent files here.
78 binary-arch: build install
108 binary: binary-indep binary-arch
109 .PHONY: build clean binary-indep binary-arch binary install configure