File: rules

package info (click to toggle)
cctz 2.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 592 kB
  • sloc: cpp: 7,084; makefile: 62; ansic: 17; sh: 16
file content (13 lines) | stat: -rwxr-xr-x 369 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 -- -DVERSION="$(VERSION)" -DSOVERSION="$(SOVERSION)"