File: rules

package info (click to toggle)
node-vscode-lsp 1.0.0~git20230424.1320922-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,140 kB
  • sloc: javascript: 451; sh: 41; makefile: 23
file content (34 lines) | stat: -rwxr-xr-x 862 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

%:
	dh $@

override_dh_auto_build:
	echo "# Compiling types"
	cd types && tsc -p src
	set -e; for p in jsonrpc protocol server; do \
		echo "# Compiling $$p"; \
		(cd $$p && tsc -p src/common && tsc -p src/node && tsc -p src/browser); \
	done
	echo "# Compiling tools"
	cd tools && tsc
	echo "# Compiling textDocument"
	cd textDocument && tsc -p src

override_dh_installdocs:
	dh_installdocs
	dh_nodejs_autodocs auto_dispatch

# Fix versions of components
override_dh_gencontrol:
	set -e; for p in `pkgjs-utils root_components_list;cat debian/nodejs/main`; do \
		VERSION=`pkgjs-pjson $$p version | sed -e 's/-/~/g'`; \
		NAME=node-`pkgjs-pjson $$p name`; \
		dh_gencontrol -p$$NAME -- -v$$VERSION~$(DEB_VERSION); \
	done