Makefile 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 test-dirty - check without building first)
  33. $(info )
  34. $(info Compatibility)
  35. $(info =============)
  36. $(info make oldorg - what the old make did: compile autoloads info)
  37. $(info )
  38. $(info Convenience)
  39. $(info ===========)
  40. $(info make up0 - pull from upstream)
  41. $(info make up1 - pull from upstream, build and check)
  42. $(info make up2 - pull from upstream, build, check and install)
  43. $(info make update - pull from upstream and build)
  44. $(info make update2 - pull from upstream, build and install)
  45. $(info make uncompiled - combine cleanlisp and autoloads)
  46. $(info make local.mk - create new local.mk as template for adaptation)
  47. $(info )
  48. $(info Cleaning)
  49. $(info ========)
  50. $(info make clean - remove built Org ELisp files and documentation)
  51. $(info make cleanall - remove everything that can be built and all remnants)
  52. $(info make cleandirs - clean in etc/, lisp/ and doc/)
  53. $(info make cleancontrib - remove remnants in contrib/)
  54. $(info make cleandoc - remove built documentation)
  55. $(info make cleandocs - ditto)
  56. $(info make cleanlisp - remove built Org ELisp files)
  57. $(info make cleanelc - ditto)
  58. $(info make cleantest - remove check remnants)
  59. $(info make clean-install - remove previous Org installation)
  60. $(info )
  61. $(info Documentation)
  62. $(info =============)
  63. help helpall::
  64. $(info make doc - build all documentation)
  65. helpall::
  66. $(info make docs - ditto)
  67. help helpall::
  68. $(info make info - build Info documentation)
  69. helpall::
  70. $(info make html - build HTML documentation)
  71. $(info make pdf - build PDF documentation)
  72. $(info make card - build reference cards)
  73. $(info make refcard - ditto)
  74. help helpall::
  75. $(info )
  76. $(info Installation)
  77. $(info ============)
  78. $(info make install - build and install Org)
  79. helpall::
  80. $(info make install-etc - build and install files in /etc)
  81. $(info make install-lisp - build and install Org Elisp files)
  82. $(info make install-info - build and install Info documentation)
  83. help helpall::
  84. @echo ""
  85. include targets.mk # toplevel make machinery