Makefile 873 B

123456789101112131415161718192021222324252627282930313233343536
  1. default: lint
  2. index:
  3. @echo "WARNING!"
  4. @echo "Index rebuilding is deprecated."
  5. @echo "You should not do it, unless you understand why you doing this."
  6. @echo
  7. @TLDRHOME=`pwd` ./scripts/build_index.rb
  8. @echo "Index rebuilt."
  9. setup: prerequisites hooks deps
  10. prerequisites:
  11. @echo
  12. @echo "IMPORTANT!"
  13. @echo "Before setting up hooks, make sure you have read Contributing Guidelines"
  14. @echo "https://github.com/tldr-pages/tldr/blob/master/CONTRIBUTING.md#submitting-a-pull-request"
  15. @echo
  16. @echo "TL;DR:"
  17. @echo "1. Install Ruby suitable for your system"
  18. @echo "2. Run 'gem install bundler'"
  19. @echo
  20. hooks:
  21. @cp ./scripts/pre-commit .git/hooks
  22. @chmod +x .git/hooks/pre-commit
  23. @echo "Git pre-commit hook installed."
  24. deps:
  25. @bundle
  26. @echo "OK"
  27. lint:
  28. @bundle exec mdl --style ./scripts/markdown-style.rb pages
  29. .PHONY: default index setup prerequisites hooks deps lint