#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@

override_dh_auto_build:
	ln -s ../packages/playwright node_modules/ || true
	node utils/build/build.js
	rm -f node_modules/playwright

execute_after_dh_fixperms:
	chmod +x `find debian/node-playwright/usr/share/nodejs -name cli.js`

execute_after_dh_installdocs:
	dh_nodejs_autodocs

execute_after_dh_installexamples:
	sed -i 's@https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png@@' \
	  debian/node-playwright/usr/share/doc/node-playwright/examples/mock-battery/demo-battery-api/index.html
