File: rules

package info (click to toggle)
highlight.js 8.2%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,716 kB
  • ctags: 631
  • sloc: python: 342; makefile: 142; sh: 23
file content (25 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download | duplicates (3)
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: build_doc
	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

override_dh_clean:
	dh_clean
	rm -rf build_browser/ build_node/
	rm -rf docs/_build/*

build_doc:
	$(MAKE) -C docs/ html
	$(MAKE) -C docs/ latexpdf

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.md