| 1 | #!/usr/bin/make -f |
| 2 | export DH_VERBOSE=1 |
| 3 | |
| 4 | # Increase dh_auto_test timeout for slow arch |
| 5 | # https://bugs.debian.org/987248 |
| 6 | include /usr/share/dpkg/architecture.mk |
| 7 | ifneq (,$(findstring $(DEB_BUILD_ARCH), armhf arm64)) |
| 8 | export MOCHA_TIMEOUT=--timeout 4000 |
| 9 | endif |
| 10 | |
| 11 | %: |
| 12 | dh $@ |
| 13 | |
| 14 | execute_before_dh_auto_build: |
| 15 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 16 | $(MAKE) -C docs/ html |
| 17 | endif |
| 18 | |
| 19 | execute_before_dh_auto_clean: |
| 20 | rm -rf build* |
| 21 | rm -f node_modules/rollup-plugin-* |
| 22 | if [ -e package.json.save ]; then \ |
| 23 | mv package.json.save package.json; \ |
| 24 | fi |