UNPKG

546 BPlain TextView Raw
1VERSION=9.16.2
2
3default: build
4 @cp -f build/highlight.* .
5 @cp -f highlight/src/styles/* styles
6 @du -hs highlight.*
7
8build: highlight
9 @cd highlight && git fetch && git checkout $(VERSION)
10 @cd highlight && npm install
11 @mkdir -p build
12 @cd highlight && node tools/build.js && cp build/highlight.pack.js ../build/highlight.pack.min.js
13 @cd highlight && node tools/build.js -n && cp build/highlight.pack.js ../build/highlight.pack.js
14
15highlight:
16 @git clone git://github.com/isagalaev/highlight.js.git $@
17
18clean:
19 @rm -rf build
20
21.PHONY: default