File: rules

package info (click to toggle)
clonalframeml 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 664 kB
  • sloc: cpp: 10,252; ansic: 133; makefile: 20; sh: 1
file content (17 lines) | stat: -rwxr-xr-x 409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --sourcedirectory=src

override_dh_auto_build:
	# upstream is querying Git for a revision which is not possible here
	# that's why we are using the Debian revision
	echo '#define ClonalFrameML_GITRevision "v$(DEB_VERSION)"' > src/version.h
	dh_auto_build