4 FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
5 MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
7 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12 CMAKE_ROOT_DIR ?= $(CURDIR)
13 CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
15 configure: configure-stamp
18 mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
23 build-stamp: configure-stamp
25 cd $(CMAKE_BUILD_DIR) && $(MAKE)
32 rm -f build-stamp configure-stamp
33 rm -f `find . -name *.pc`
34 rm -rf $(CMAKE_BUILD_DIR)
43 cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
45 binary-indep: build install
47 binary-arch: build install
53 dh_install --sourcedir=debian/tmp
56 dh_strip --dbg-package=capi-network-connection-dbg
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install configure