File: rules

package info (click to toggle)
node-undici 5.15.0%2Bdfsg1%2B~cs20.10.9.3-1%2Bdeb12u4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,448 kB
  • sloc: javascript: 55,086; ansic: 936; makefile: 97
file content (27 lines) | stat: -rwxr-xr-x 677 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk

LLHTTPVERSION=$(shell pkgjs-pjson llhttp version)

%:
	dh $@

override_dh_auto_build:
	# Override the global undici-types with our local copy.
	cp -r types node_modules/undici-types
	dh_auto_build --buildsystem=nodejs

override_dh_auto_test:
	# autopkgtest only

override_dh_install:
	dh_install
	rm -f debian/node-undici/usr/share/nodejs/undici/lib/fetch/LICENSE

override_dh_gencontrol:
	dh_gencontrol -pnode-undici -- -v$(DEB_VERSION)
	dh_gencontrol -pnode-llhttp -- -v$(LLHTTPVERSION)~$(DEB_VERSION) -Vllhttp:Version=$(LLHTTPVERSION)