File: rules

package info (click to toggle)
gflags 2.2.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 804 kB
  • sloc: cpp: 3,918; python: 36; sh: 22; makefile: 18
file content (30 lines) | stat: -rwxr-xr-x 734 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

CONFIGURE_ARGS= \
 -DCMAKE_BUILD_TYPE=Release \
 -DBUILD_STATIC_LIBS=ON \
 -DBUILD_SHARED_LIBS=ON \
 -DBUILD_TESTING=ON \
 -DLIB_INSTALL_DIR:STRING="lib/$(DEB_HOST_MULTIARCH)"

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_ARGS)

override_dh_auto_install:
	dh_auto_install -O--buildsystem=cmake
	find $(CURDIR)/debian/tmp/ -type d -name .cmake | xargs -r rm -rfv

override_installchangelogs:
	installchangelogs ChangeLog

%:
	dh  $@ --buildsystem=cmake

.PHONY: override_dh_auto_configure override_dh_auto_install \
	override_installchangelogs