Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. helpall::
  30. $(info make test-dirty - check without building first)
  31. $(info make compile-dirty - build only stale Org ELisp files)
  32. $(info )
  33. $(info Compatibility)
  34. $(info =============)
  35. $(info make oldorg - what the old make did: compile autoloads info)
  36. $(info )
  37. $(info Cleaning)
  38. $(info ========)
  39. $(info make clean - remove built Org ELisp files and documentation)
  40. $(info make cleanall - remove everything that can be built and all remnants)
  41. $(info make clean-install - remove previous Org installation)
  42. $(info )
  43. $(info Configuration Check)
  44. $(info ===================)
  45. help helpall::
  46. $(info make config - check main configuration)
  47. helpall::
  48. $(info make config-version - check Org version)
  49. $(info make config-test - check test configuration)
  50. $(info make config-exe - check executables configuration)
  51. $(info make config-cmd - check command configuration)
  52. $(info make config-all - check all configuration)
  53. $(info )
  54. $(info Documentation)
  55. $(info =============)
  56. help helpall::
  57. $(info make doc - build all documentation)
  58. helpall::
  59. $(info make docs - ditto)
  60. help helpall::
  61. $(info make info - build Info documentation)
  62. helpall::
  63. $(info make html - build HTML documentation)
  64. $(info make pdf - build PDF documentation)
  65. $(info make card - build reference cards)
  66. $(info make refcard - ditto)
  67. help helpall::
  68. $(info )
  69. $(info Installation)
  70. $(info ============)
  71. $(info make install - build and install Org)
  72. helpall::
  73. $(info make install-etc - build and install files in /etc)
  74. $(info make install-lisp - build and install Org Elisp files)
  75. $(info make install-info - build and install Info documentation)
  76. $(info )
  77. $(info Convenience)
  78. $(info ===========)
  79. $(info make up0 - pull from upstream)
  80. $(info make up1 - pull from upstream, build and check)
  81. $(info make up2 - pull from upstream, build, check and install)
  82. $(info make update - pull from upstream and build)
  83. $(info make update2 - pull from upstream, build and install)
  84. $(info make uncompiled - combine cleanlisp and autoloads)
  85. $(info make local.mk - create new local.mk as template for adaptation)
  86. help helpall::
  87. $(info )
  88. $(info Full documentation on Worg)
  89. $(info ==========================)
  90. $(info http://orgmode.org/worg/dev/org-build-system.html)
  91. @echo ""
  92. include mk/targets.mk # toplevel make machinery