~cemil-azizoglu/miral/mir-0.26.1-compat

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Alan Griffiths
  • Date: 2016-08-08 10:45:09 UTC
  • mto: This revision was merged to the branch mainline in revision 267.
  • Revision ID: alan@octopull.co.uk-20160808104509-g5fvr9gqg83w2esd
First cut at debian files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
4
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
5
DEB_HOST_ARCH_ENDIAN ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
 
6
EXACT_PACKAGE_VERSION = $(shell dpkg-parsechangelog | grep Version | cut -d' ' -f 2)
 
7
 
 
8
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
 
9
 
 
10
%:
 
11
        dh $@ --parallel --fail-missing --with python3
 
12
 
 
13
COMMON_CONFIGURE_OPTIONS = \
 
14
  -DCMAKE_INSTALL_LIBEXECDIR="lib/$(DEB_HOST_MULTIARCH)/miral"\
 
15
 
 
16
ifeq ($(filter noopt,$(DEB_BUILD_OPTIONS)),noopt)
 
17
        COMMON_CONFIGURE_OPTIONS += -DMIRAL_USE_LTO=OFF
 
18
else
 
19
        COMMON_CONFIGURE_OPTIONS += -DMIRAL_USE_LTO=ON
 
20
endif
 
21
 
 
22
# Only build the docs when we need them
 
23
override_dh_auto_build-indep:
 
24
        dh_auto_build -- doc