4 PACKAGE_VERSION ?= $(shell dpkg-parsechangelog | sed -n 's/^Version: // p')
6 ifneq (,$(findstring yes,$(DPL_LOGS)))
9 DPL_LOGS_STATUS = "OFF"
12 BUILD_DIR = cmake-build
14 configure: configure-stamp
19 ( cd $(BUILD_DIR); cmake .. \
20 -DCMAKE_INSTALL_PREFIX=/usr \
21 -DDPL_LOG=$(DPL_LOGS_STATUS) \
22 -DVERSION=${PACKAGE_VERSION};)
27 build-stamp: configure-stamp
29 ( cd $(BUILD_DIR); $(MAKE) -j 4 )
35 rm -f build-stamp configure-stamp
44 ( cd $(BUILD_DIR); $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install )
47 binary-indep: build install
49 binary-arch: build install
55 dh_install --sourcedir=debian/tmp
67 dh_strip --dbg-package=wrt-commons-dbg
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install configure