3 FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
4 MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
8 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13 CMAKE_ROOT_DIR ?= $(CURDIR)
14 CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
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 -f `find . -name *.desktop`
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-system-usb-accessory-dbg
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install configure