File: rules

package info (click to toggle)
cctz 2.4%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: cpp: 8,193; makefile: 62; ansic: 17; sh: 16
file content (13 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all


%:
	dh $@ --buildsystem=cmake

VERSION ?= $(shell echo $(DEB_VERSION_UPSTREAM) | cut -f1 -d"-")
SOVERSION ?= $(shell echo $(DEB_VERSION_UPSTREAM) | cut -f1 -d"+")

override_dh_auto_configure:
	dh_auto_configure -- -DBUILD_TOOLS=OFF -DVERSION="$(VERSION)" -DSOVERSION="$(SOVERSION)"