File: rules

package info (click to toggle)
highlight.js 9.18.5%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 6,672 kB
  • sloc: javascript: 40,928; python: 342; makefile: 160; sh: 11
file content (25 lines) | stat: -rwxr-xr-x 654 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
export DH_VERBOSE=1

js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)

%:
	dh $@

override_dh_auto_build:
	python3 tools/build.py -n
	python3 tools/build.py -tnode
	$(js-compressor) -o build_browser/highlight.min.js build_browser/highlight.pack.js
	mv build_browser/highlight.pack.js build_browser/highlight.js
	$(MAKE) -C docs/ html
	$(MAKE) -C docs/ latexpdf
	mv build_node/lib .
	mv build_node/styles .
	mv package.json package.json.save
	mv build_node/package.json .

override_dh_auto_clean:
	if [ -e package.json.save ]; then \
		mv package.json.save package.json; \
	fi
	dh_auto_clean --buildsystem=nodejs