File: rules

package info (click to toggle)
shapelib 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,708 kB
  • sloc: ansic: 9,023; sh: 4,559; cpp: 178; pascal: 159; makefile: 109
file content (35 lines) | stat: -rwxr-xr-x 796 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
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/pkg-info.mk

BUILD_DATE := $(shell LC_ALL=C date -u "+%Y-%m-%d" -d "@$(SOURCE_DATE_EPOCH)")

UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')

%:
	dh $@ --with autoreconf --parallel

override_dh_clean:
	dh_clean debian/man/*.1

override_dh_auto_build:
	dh_auto_build
	ronn -r --date="$(BUILD_DATE)" --manual=shplib debian/man/*.md
	for FILE in debian/man/*.md.1; do \
		mv -v $$FILE debian/man/`basename $$FILE .md.1`.1; \
	done

override_dh_auto_install:
	dh_auto_install

	# Don't install .la files
	$(RM) debian/*/usr/lib/*/*.la

override_dh_install:
	dh_install --list-missing

override_dh_makeshlibs:
	dh_makeshlibs -- -v$(UPSTREAM_VERSION)