Makefile 522 B

123456789101112131415161718192021222324252627
  1. default: lint
  2. all: setup index
  3. index:
  4. @echo "WARNING!"
  5. @echo "Index rebuilding is deprecated."
  6. @echo "You should not do it, unless you understand why you doing this."
  7. @echo
  8. @TLDRHOME=`pwd` ./scripts/build_index.rb
  9. @echo "Index rebuilt."
  10. setup: hooks deps
  11. hooks:
  12. @cp ./scripts/pre-commit .git/hooks
  13. @chmod +x .git/hooks/pre-commit
  14. @echo "Git pre-commit hook installed."
  15. deps:
  16. @bundle
  17. @echo "OK"
  18. lint:
  19. @bundle exec mdl --style ./scripts/markdown-style.rb pages
  20. .PHONY: default index setup hooks deps lint