1
0

Makefile 383 B

1234567891011121314151617181920212223
  1. default: lint
  2. all: setup index
  3. index:
  4. @TLDRHOME=`pwd` ./scripts/build_index.rb
  5. @echo "Index rebuilt."
  6. setup: hooks deps
  7. hooks:
  8. @cp ./scripts/pre-commit .git/hooks
  9. @chmod +x .git/hooks/pre-commit
  10. @echo "Git pre-commit hook installed."
  11. deps:
  12. @bundle
  13. @echo "OK"
  14. lint:
  15. @bundle exec mdl --style ./scripts/markdown-style.rb pages
  16. .PHONY: default index setup hooks deps lint