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 CONCURRENCY_LEVEL ?= 1
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25 # shared library versions, option 1
28 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
29 #version=`ls src/.libs/lib*.so.* | \
30 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
31 #major=`ls src/.libs/lib*.so.* | \
32 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
34 destdir=$(CURDIR)/debian/tmp
36 configure: configure-stamp
39 # # Add here commands to configure the package.
40 rm -f Doxyfile.local SConfig local_config.hh
42 # If needed, we could create new files 'Doxyfile.local',
43 # 'SConfig' and/or 'local_config.hh' here. We don't remove them
44 # in 'clean' to allow building a source package from an
45 # individually configured svn working copy. (The files are ignored
46 # by dpkg-buildpackge because of appropriate -I arguments provided
47 # by 'scons deb' and 'scons debsrc'
51 build-stamp: configure-stamp
53 # # Add here commands to compile the package.
54 scons -j $(CONCURRENCY_LEVEL) default all_docs final=1
62 rm -f build-stamp configure-stamp
63 # # Add here commands to clean up after the build process.
72 # # Add here commands to install the package into debian/tmp
73 scons install_all final=1 \
74 PREFIX='$(destdir)/usr' \
75 DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc' \
76 INCLUDEINSTALLDIR='$$PREFIX/include/senf'
77 # We need to install the example sourcecode
78 find Examples \( -name "*.hh" -o -name "*.cc" \) -printf "%P\n" | \
80 dir="$(destdir)/usr/share/doc/libsenf-doc/examples/$$(dirname "$$src")"; \
82 cp "Examples/$$src" "$$dir"; \
85 # Build architecture-independent files here.
86 binary-indep: build install
87 # We have nothing to do by default.
89 # Build architecture-dependent files here.
90 binary-arch: build install
120 binary: binary-indep binary-arch
121 .PHONY: build clean binary-indep binary-arch binary install configure