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.
12 # These are used for cross-compiling and for saving the configure script
13 # from having to guess our platform (since we know it already)
14 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
15 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
17 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_GNU_OS)
25 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
33 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
35 configure: configure-stamp
38 # Add here commands to configure the package.
39 CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) -DCMAKE_BUILD_TYPE="Debug"
45 build-stamp: configure-stamp
48 # Add here commands to compile the package.
50 #docbook-to-man debian/wavplayer.sgml > wavplayer.1
52 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
53 cat $$f > $${f%.in}; \
54 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
55 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
63 rm -f build-stamp configure-stamp
65 # Add here commands to clean up after the build process.
67 rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile install_manifest.txt
68 cd test; rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile install_manifest.txt
70 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
82 # Add here commands to install the package into debian/wavplayer.
83 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
86 # Build architecture-independent files here.
87 binary-indep: build install
88 # We have nothing to do by default.
90 # Build architecture-dependent files here.
91 binary-arch: build install
97 dh_install --sourcedir=debian/tmp
100 # dh_installlogrotate
110 dh_strip --dbg-package=libheynoti-dbg
121 binary: binary-indep binary-arch
122 .PHONY: build clean binary-indep binary-arch binary install configure