File: rules

package info (click to toggle)
edbrowse 3.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,992 kB
  • sloc: ansic: 48,603; javascript: 16,211; perl: 6,825; sh: 120; makefile: 81; cpp: 56
file content (24 lines) | stat: -rwxr-xr-x 654 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath

export QUICKJS_INCLUDE=/usr/include/quickjs
export QUICKJS_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)/quickjs
# build with debugging symbols by default, otherwise dh_strip and dbgsym logic
# fails
export EBDEBUG=1

export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config

BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libquickjs)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	cp doc/man-edbrowse-debian.1 debian/edbrowse.1

override_dh_gencontrol:
	echo 'built-using=$(BUILT_USING)' >> debian/edbrowse.substvars
	dh_gencontrol