5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10 CMAKE_ROOT_DIR ?= $(CURDIR)
11 CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
13 FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
14 MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
16 configure: configure-stamp
19 mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
24 build-stamp: configure-stamp
26 cd $(CMAKE_BUILD_DIR) && $(MAKE)
33 rm -f build-stamp configure-stamp
34 rm -f `find . -name *.pc`
35 rm -rf $(CMAKE_BUILD_DIR)
44 cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
46 binary-indep: build install
48 binary-arch: build install
54 dh_install --sourcedir=debian/tmp
57 dh_strip --dbg-package=capi-appfw-app-manager-dbg
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install configure