File: rules

package info (click to toggle)
highlight.js 10.7.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,332 kB
  • sloc: javascript: 41,059; makefile: 157; python: 29; sh: 20
file content (24 lines) | stat: -rwxr-xr-x 540 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
#!/usr/bin/make -f
export DH_VERBOSE=1

# Increase dh_auto_test timeout for slow arch
# https://bugs.debian.org/987248
include /usr/share/dpkg/architecture.mk
ifneq (,$(findstring $(DEB_BUILD_ARCH), armhf arm64))
  export MOCHA_TIMEOUT=--timeout 4000
endif

%:
	dh $@

execute_before_dh_auto_build:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	$(MAKE) -C docs/ html
endif

execute_before_dh_auto_clean:
	rm -rf build*
	rm -f node_modules/rollup-plugin-*
	if [ -e package.json.save ]; then \
		mv package.json.save package.json; \
	fi