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)}'`
35 configure: configure-stamp
36 configure-stamp: builddir
38 # Add here commands to configure the package.
39 cd $(BUILD_DIR) && cmake -DCMAKE_INSTALL_PREFIX=/usr ..
45 build-stamp: configure-stamp
48 # Add here commands to compile the package.
49 cd $(BUILD_DIR) && $(MAKE)
56 rm -f build-stamp configure-stamp
58 # Add here commands to clean up after the build process.
59 -cd $(BUILD_DIR) && $(MAKE) clean
70 # Add here commands to install the package into debian/tmp
71 cd $(BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
74 # Build architecture-independent files here.
75 binary-indep: build install
76 # We have nothing to do by default.
78 # Build architecture-dependent files here.
79 binary-arch: build install
82 dh_installchangelogs CHANGELOG.txt
85 dh_install --sourcedir=debian/tmp
109 binary: binary-indep binary-arch
110 .PHONY: build clean binary-indep binary-arch binary install configure