File: rules

package info (click to toggle)
node-resolve-from 5.0.0%2B~3.1.0%2B~3.3.0%2B~2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 364 kB
  • sloc: javascript: 234; makefile: 19
file content (27 lines) | stat: -rwxr-xr-x 1,105 bytes parent folder | download | duplicates (2)
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

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

%:
	dh $@

execute_before_dh_auto_configure:
	mkdir -p debian/node_modules
	ln --force --symbolic ../.. debian/node_modules/resolve-from
	ln --force --symbolic ../../Xcall debian/node_modules/callsites
	ln --force --symbolic ../../Xfresh debian/node_modules/import-fresh
	ln --force --symbolic ../../Xparent debian/node_modules/parent-module

override_dh_gencontrol:
	dh_gencontrol -- \
		-V"call:Version=$(shell jq --raw-output .version < Xcall/package.json)~$(DEB_VERSION)" \
		-V"fresh:Version=$(shell jq --raw-output .version < Xfresh/package.json)~$(DEB_VERSION)" \
		-V"parent:Version=$(shell jq --raw-output .version < Xparent/package.json)~$(DEB_VERSION)"

# TODO: check resolve-from tests when tape v4.13.0 is in Debian
override_dh_auto_test:
	mkdir --parents fixture/fixture-for-symlinks/subfolder/symlink-target
#	NODE_PATH=debian/node_modules tape test.js
	cd Xcall && NODE_PATH=../debian/node_modules tape test.js
	cd Xparent && NODE_PATH=../debian/node_modules tape test.js
	cd Xfresh && NODE_PATH=../debian/node_modules tape test.js