Makefile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 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 autoloads - create org-install.el to load Org in-place)
  28. $(info make check - build Org ELisp files and run test suite)
  29. helpall::
  30. $(info make test - ditto)
  31. $(info make compile-dirty - build only stale Org ELisp files)
  32. $(info make compile-single - build using one Emacs process per file)
  33. $(info make compile-source - ditto, but immediately remove byte-compiled file )
  34. $(info make test-dirty - check without building first)
  35. $(info )
  36. $(info Compatibility)
  37. $(info =============)
  38. $(info make oldorg - what the old make did: compile autoloads info)
  39. $(info )
  40. $(info Convenience)
  41. $(info ===========)
  42. $(info make up0 - pull from upstream)
  43. $(info make up1 - pull from upstream, build and check)
  44. $(info make up2 - pull from upstream, build, check and install)
  45. $(info make update - pull from upstream and build)
  46. $(info make update2 - pull from upstream, build and install)
  47. $(info make uncompiled - combine cleanlisp and autoloads)
  48. $(info make local.mk - create new local.mk as template for adaptation)
  49. $(info )
  50. $(info Cleaning)
  51. $(info ========)
  52. $(info make clean - remove built Org ELisp files and documentation)
  53. $(info make cleanall - remove everything that can be built and all remnants)
  54. $(info make cleandirs - clean in etc/, lisp/ and doc/)
  55. $(info make cleancontrib - remove remnants in contrib/)
  56. $(info make cleantesting - remove remnants in testing/)
  57. $(info make cleanutils - remove remnants in UTILITIES/)
  58. $(info make cleandoc - remove built documentation)
  59. $(info make cleandocs - ditto)
  60. $(info make cleanlisp - remove built Org ELisp files)
  61. $(info make cleanelc - ditto)
  62. $(info make cleantest - remove test directory)
  63. $(info make clean-install - remove previous Org installation)
  64. $(info )
  65. $(info Configuration Check)
  66. $(info ===================)
  67. help helpall::
  68. $(info make config - check main configuration)
  69. helpall::
  70. $(info make config-test - check test configuration)
  71. $(info make config-exe - check executables configuration)
  72. $(info make config-cmd - check command configuration)
  73. $(info make config-all - check all configuration)
  74. $(info make config-eol - check all configuration, mark end-of-line)
  75. $(info )
  76. $(info Documentation)
  77. $(info =============)
  78. help helpall::
  79. $(info make doc - build all documentation)
  80. helpall::
  81. $(info make docs - ditto)
  82. help helpall::
  83. $(info make info - build Info documentation)
  84. helpall::
  85. $(info make html - build HTML documentation)
  86. $(info make pdf - build PDF documentation)
  87. $(info make card - build reference cards)
  88. $(info make refcard - ditto)
  89. help helpall::
  90. $(info )
  91. $(info Installation)
  92. $(info ============)
  93. $(info make install - build and install Org)
  94. helpall::
  95. $(info make install-etc - build and install files in /etc)
  96. $(info make install-lisp - build and install Org Elisp files)
  97. $(info make install-info - build and install Info documentation)
  98. help helpall::
  99. @echo ""
  100. include targets.mk # toplevel make machinery