#!/usr/bin/make -f

export LC_ALL=C.UTF-8

%:
	dh $@

get-orig-source:
	debian/get-orig-source

override_dh_auto_build:
	sh debian/build.sh

# The tree comes out of one command and is installed as a unit.  The font does
# not come out of it: fonts-codicons ships it, and debian/node-monaco-editor.links
# points at that copy instead (lintian: font-in-non-font-package).
override_dh_auto_install:
	install -d debian/node-monaco-editor/usr/share/nodejs
	cp -a out/monaco-editor debian/node-monaco-editor/usr/share/nodejs/monaco-editor
	rm -f debian/node-monaco-editor/usr/share/nodejs/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf
