5 FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
6 MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14 CMAKE_ROOT_DIR ?= $(CURDIR)
15 CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
17 configure: configure-stamp
20 mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
25 build-stamp: configure-stamp
27 cd $(CMAKE_BUILD_DIR) && $(MAKE)
34 rm -f build-stamp configure-stamp
36 rm -rf $(CMAKE_BUILD_DIR)
45 cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
47 binary-indep: build install
49 binary-arch: build install
55 dh_install --sourcedir=debian/tmp
58 dh_strip --dbg-package=capi-media-wav-player-dbg
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install configure