Makefile 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Makefile - for the org-mode distribution
  2. # GNU make is required
  3. #
  4. # This file is not part of GNU Emacs
  5. # set up environment
  6. include mk/default.mk # defaults, customizable via "local.mk"
  7. -include local.mk # optional local customization, use default.mk as template
  8. # default target is "all" unless overridden in local.mk
  9. all::
  10. # Describe valid make targets for org-mode.
  11. .PHONY: targets help helpall
  12. targets: help
  13. help helpall::
  14. $(info )
  15. $(info Getting Help)
  16. $(info ============)
  17. $(info make help - show brief help)
  18. $(info make targets - ditto)
  19. $(info make helpall - show extended help)
  20. $(info )
  21. $(info Build and Check)
  22. $(info ===============)
  23. $(info make - build Org ELisp and all documentation)
  24. $(info make all - ditto)
  25. $(info make compile - build Org ELisp files)
  26. $(info make single - build Org ELisp files, single Emacs per source)
  27. $(info make autoloads - create org-loaddefs.el to load Org in-place)
  28. $(info make test - build Org ELisp files and run test suite)
  29. $(info make vanilla - run Emacs with this Org-mode and no personal config)
  30. helpall::
  31. $(info make test-dirty - check without building first)
  32. $(info make compile-dirty - build only stale Org ELisp files)
  33. $(info )
  34. $(info Compatibility)
  35. $(info =============)
  36. $(info make oldorg - what the old make did: compile autoloads info)
  37. $(info )
  38. $(info Cleaning)
  39. $(info ========)
  40. $(info make clean - remove built Org ELisp files and documentation)
  41. $(info make cleanall - remove everything that can be built and all remnants)
  42. $(info make clean-install - remove previous Org installation)
  43. $(info )
  44. $(info Configuration Check)
  45. $(info ===================)
  46. help helpall::
  47. $(info make config - check main configuration)
  48. helpall::
  49. $(info make config-version - check Org version)
  50. $(info make config-test - check test configuration)
  51. $(info make config-exe - check executables configuration)
  52. $(info make config-cmd - check command configuration)
  53. $(info make config-all - check all configuration)
  54. $(info )
  55. $(info Documentation)
  56. $(info =============)
  57. help helpall::
  58. $(info make doc - build all documentation)
  59. helpall::
  60. $(info make docs - ditto)
  61. help helpall::
  62. $(info make info - build Info documentation)
  63. helpall::
  64. $(info make html - build HTML documentation)
  65. $(info make pdf - build PDF documentation)
  66. $(info make card - build reference cards)
  67. $(info make refcard - ditto)
  68. help helpall::
  69. $(info )
  70. $(info Installation)
  71. $(info ============)
  72. $(info make install - build and install Org)
  73. helpall::
  74. $(info make install-etc - build and install files in /etc)
  75. $(info make install-lisp - build and install Org Elisp files)
  76. $(info make install-info - build and install Info documentation)
  77. $(info )
  78. $(info Convenience)
  79. $(info ===========)
  80. $(info make up0 - pull from upstream)
  81. $(info make up1 - pull from upstream, build and check)
  82. $(info make up2 - pull from upstream, build, check and install)
  83. $(info make update - pull from upstream and build)
  84. $(info make update2 - pull from upstream, build and install)
  85. $(info make uncompiled - combine cleanlisp and autoloads)
  86. $(info make local.mk - create new local.mk as template for adaptation)
  87. help helpall::
  88. $(info )
  89. $(info Full documentation on Worg)
  90. $(info ==========================)
  91. $(info https://orgmode.org/worg/dev/org-build-system.html)
  92. @echo ""
  93. include mk/targets.mk # toplevel make machinery