Makefile 3.2 KB

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