Makefile 3.6 KB

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