Makefile 451 B

123456789101112131415161718192021222324
  1. all: setup index
  2. index:
  3. @TLDRHOME=`pwd` ./scripts/build_index.rb
  4. @echo "Index rebuilt."
  5. setup: hooks deps
  6. hooks:
  7. @cp ./scripts/pre-commit .git/hooks
  8. @chmod +x .git/hooks/pre-commit
  9. @echo "Git pre-commit hook installed."
  10. deps:
  11. @bundle
  12. @echo "OK"
  13. lint:
  14. @GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
  15. lint-changed:
  16. @./scripts/lint-changed.sh
  17. .PHONY: index setup hooks deps lint lint-changed