Makefile 392 B

123456789101112131415161718
  1. VERSION=8.4
  2. default: highlight/build
  3. @cp -f highlight/build/highlight.* .
  4. @cp -f highlight/src/styles/* styles
  5. @du -hs highlight.*
  6. highlight/build: highlight
  7. @cd highlight && git fetch && git checkout $(VERSION)
  8. @cd highlight && npm install && node tools/build.js
  9. highlight:
  10. @git clone git://github.com/isagalaev/highlight.js.git $@
  11. clean:
  12. @rm -rf highlight/build
  13. .PHONY: default