default.mk 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. ##----------------------------------------------------------------------
  2. ## NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
  3. ##-8<-------------------------------------------------------------------
  4. ## CHECK AND ADAPT THE FOLLOWING DEFINITIONS
  5. ##----------------------------------------------------------------------
  6. # Name of your emacs binary
  7. EMACS = emacs
  8. # Where local software is found
  9. prefix = /usr/share
  10. # Where local lisp files go.
  11. lispdir= $(prefix)/emacs/site-lisp/org
  12. # Where local data files go.
  13. datadir = $(prefix)/emacs/etc/org
  14. # Where info files go.
  15. infodir = $(prefix)/info
  16. # Define if you only need info documentation, the default includes html and pdf
  17. #ORG_MAKE_DOC = info # html pdf
  18. # Define if you want to include some (or all) files from contrib/lisp
  19. # just the filename please (no path prefix, no .el suffix), maybe with globbing
  20. #ORG_ADD_CONTRIB = org-e-* org-md org-export # e.g. the new exporter
  21. # Where to create temporary files for the testsuite
  22. # respect TMPDIR if it is already defined in the environment
  23. TMPDIR ?= /tmp
  24. testdir = $(TMPDIR)/tmp-orgtest
  25. # Configuration for testing
  26. # add options before standard load-path
  27. BTEST_PRE =
  28. # add options after standard load path
  29. BTEST_POST =
  30. # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
  31. # -L <path-to>/ess # needed for running R tests
  32. # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
  33. BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh
  34. # R # requires ESS to be installed and configured
  35. # extra packages to require for testing
  36. BTEST_EXTRA =
  37. # ess-site # load ESS for R tests
  38. ##->8-------------------------------------------------------------------
  39. ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
  40. ##----------------------------------------------------------------------
  41. # How to run tests
  42. req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
  43. req-extra = --eval '(require '"'"'$(req))'
  44. BTEST = $(BATCH) \
  45. $(BTEST_PRE) \
  46. --eval '(add-to-list '"'"'load-path "./lisp")' \
  47. --eval '(add-to-list '"'"'load-path "./testing")' \
  48. $(BTEST_POST) \
  49. -l org-install.el \
  50. -l testing/org-test.el \
  51. $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
  52. $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
  53. --eval '(setq org-confirm-babel-evaluate nil)' \
  54. -f org-test-run-batch-tests
  55. # Using emacs in batch mode.
  56. # BATCH = $(EMACS) -batch -vanilla # XEmacs
  57. BATCH = $(EMACS) -batch -Q
  58. # How to generate local.mk
  59. MAKE_LOCAL_MK = $(BATCH) \
  60. --eval '(add-to-list '"'"'load-path "./lisp")' \
  61. --eval '(load "org-compat.el")' \
  62. --eval '(load "../utils/org-fixup.el")' \
  63. --eval '(org-make-local-mk)'
  64. # Emacs must be started in lisp directory
  65. BATCHL = $(BATCH) \
  66. --eval '(add-to-list '"'"'load-path ".")'
  67. # How to generate org-install.el
  68. MAKE_ORG_INSTALL = $(BATCHL) \
  69. --eval '(load "org-compat.el")' \
  70. --eval '(load "../utils/org-fixup.el")' \
  71. --eval '(org-make-org-install)'
  72. # How to generate org-version.el
  73. MAKE_ORG_VERSION = $(BATCHL) \
  74. --eval '(load "org-compat.el")' \
  75. --eval '(load "../utils/org-fixup.el")' \
  76. --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "$(datadir)")'
  77. # How to byte-compile the whole source directory
  78. ELCDIR = $(BATCHL) \
  79. --eval '(batch-byte-recompile-directory 0)'
  80. # How to byte-compile a single file
  81. ELC = $(BATCHL) \
  82. --eval '(batch-byte-compile)'
  83. # How to make a pdf file from a texinfo file
  84. TEXI2PDF = texi2pdf --batch --clean
  85. # How to make a pdf file from a tex file
  86. PDFTEX = pdftex
  87. # How to create directories with leading path components
  88. # MKDIR = mkdir -m 755 -p # try this if you have no install
  89. MKDIR = install -m 755 -d
  90. # How to create the info files from the texinfo file
  91. MAKEINFO = makeinfo
  92. # How to create the HTML file
  93. TEXI2HTML = makeinfo --html --number-sections
  94. # How to find files
  95. FIND = find
  96. # How to remove files
  97. RM = rm -f
  98. # How to remove files recursively
  99. RMR = rm -fr
  100. # How to copy the lisp files and elc files to their destination.
  101. # CP = cp -p # try this if you have no install
  102. CP = install -m 644 -p
  103. # How to obtain administrative privileges
  104. # leave blank if you don't need this
  105. # SUDO =
  106. SUDO = sudo
  107. # Name of the program to install info files
  108. # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
  109. INSTALL_INFO = install-info
  110. # target method for 'compile'
  111. ORGCM = dirall
  112. # ORGCM = dirall # 1x slowdown compared to default compilation method
  113. # ORGCM = single # 4x one Emacs process per compilation
  114. # ORGCM = source # 5x ditto, but remove compiled file immediately
  115. # ORGCM = slint1 # 3x possibly elicit more warnings
  116. # ORGCM = slint2 # 7x possibly elicit even more warnings