File: rules

package info (click to toggle)
libsml 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 844 kB
  • sloc: ansic: 8,435; makefile: 174; sh: 5
file content (23 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

# Build with all available hardening options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

VERSION=$(shell dpkg-parsechangelog --show-field Version 2>/dev/null | cut -f1 -d-)

execute_before_dh_auto_build:
	sed -i 's#"version":.*#"version": "${VERSION}",#' library.json 
	sed -i 's#Version:.*#Version: ${VERSION}#' sml.pc

execute_after_dh_auto_build:
	pandoc -o sml_server.1 -s -t man debian/sml_server.1.md

execute_after_dh_clean:
	rm -f sml_server.1

override_dh_auto_install:

%:
	dh $@