File: rules

package info (click to toggle)
ldm 2%3A2.18.06-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,248 kB
  • sloc: ansic: 4,599; sh: 266; python: 260; makefile: 109; sed: 16
file content (25 lines) | stat: -rwxr-xr-x 577 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
24
25
#!/usr/bin/make -f

export ENABLE_NLS=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

VENDOR ?= $(shell dpkg-vendor --derives-from Ubuntu && echo Ubuntu || echo Debian)

%:
	dh $@

override_dh_install:
	dh_install
	rm -f debian/ldm/usr/lib/*/ldm/*.la

override_dh_fixperms:
	dh_fixperms
	# ensure ldm-script is executable to avoid lintian warning
	test ! -f debian/ldm/usr/share/ldm/ldm-script || chmod +x debian/ldm/usr/share/ldm/ldm-script

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_gencontrol:
	./debian/x-vendor-substvars $(VENDOR)
	dh_gencontrol