Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ifdef V
  2. VVAL=--verbose
  3. endif
  4. ifdef VERBOSE
  5. VVAL=--verbose
  6. endif
  7. ifdef FAIL_WARN
  8. export FAIL_WARN
  9. endif
  10. all:
  11. python3 setup.py $(VVAL)
  12. test:
  13. python3 setup.py $(VVAL) test
  14. clean:
  15. python3 setup.py $(VVAL) clean
  16. # A debug build
  17. debug:
  18. python3 setup.py build $(VVAL) --debug
  19. debug-event-loop:
  20. python3 setup.py build $(VVAL) --debug --extra-logging=event-loop
  21. # Build with the ASAN and UBSAN sanitizers
  22. asan:
  23. python3 setup.py build $(VVAL) --debug --sanitize
  24. profile:
  25. python3 setup.py build $(VVAL) --profile
  26. app:
  27. python3 setup.py kitty.app $(VVAL)
  28. linux-package: FORCE
  29. rm -rf linux-package
  30. python3 setup.py linux-package
  31. FORCE:
  32. man:
  33. $(MAKE) -C docs man
  34. html:
  35. $(MAKE) -C docs html
  36. dirhtml:
  37. $(MAKE) -C docs dirhtml
  38. linkcheck:
  39. $(MAKE) -C docs linkcheck
  40. website:
  41. ./publish.py --only website
  42. docs: man html
  43. develop-docs:
  44. $(MAKE) -C docs develop-docs
  45. prepare-for-cross-compile: clean all
  46. python3 setup.py $(VVAL) clean --clean-for-cross-compile
  47. cross-compile:
  48. python3 setup.py linux-package --skip-code-generation