default.mk 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 which git branch to switch to during update. Does not switch
  19. # the branch when undefined.
  20. GIT_BRANCH =
  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 perl python
  34. # R # requires ESS to be installed and configured
  35. # ruby # requires inf-ruby to be installed and configured
  36. # extra packages to require for testing
  37. BTEST_EXTRA =
  38. # ess-site # load ESS for R tests
  39. ##->8-------------------------------------------------------------------
  40. ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
  41. ##----------------------------------------------------------------------
  42. # How to run tests
  43. req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
  44. lst-ob-lang = ($(ob-lang) . t)
  45. req-extra = --eval '(require '"'"'$(req))'
  46. BTEST_RE ?= \\(org\\|ob\\)
  47. BTEST_LOAD = \
  48. --eval '(add-to-list '"'"'load-path (concat default-directory "lisp"))' \
  49. --eval '(add-to-list '"'"'load-path (concat default-directory "testing"))'
  50. BTEST_INIT = $(BTEST_PRE) $(BTEST_LOAD) $(BTEST_POST)
  51. BTEST = $(BATCH) $(BTEST_INIT) \
  52. -l org-batch-test-init \
  53. --eval '(setq \
  54. org-batch-test t \
  55. org-babel-load-languages \
  56. (quote ($(foreach ob-lang,\
  57. $(BTEST_OB_LANGUAGES) emacs-lisp shell org,\
  58. $(lst-ob-lang)))) \
  59. org-test-select-re "$(BTEST_RE)" \
  60. )' \
  61. -l org-loaddefs.el \
  62. -l cl -l testing/org-test.el \
  63. -l ert -l org -l ox -l ol \
  64. $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
  65. --eval '(org-test-run-batch-tests org-test-select-re)'
  66. # Running a plain emacs with no config and this Org mode loaded. This
  67. # should be useful for manual testing and verification of problems.
  68. NOBATCH = $(EMACSQ) $(BTEST_INIT) -l org -f org-version
  69. # start Emacs with no user and site configuration
  70. # EMACSQ = -vanilla # XEmacs
  71. EMACSQ = $(EMACS) -Q
  72. # Using emacs in batch mode.
  73. BATCH = $(EMACSQ) -batch \
  74. --eval '(setq vc-handled-backends nil org-startup-folded nil)'
  75. # Emacs must be started in toplevel directory
  76. BATCHO = $(BATCH) \
  77. --eval '(add-to-list '"'"'load-path "./lisp")'
  78. # How to generate local.mk
  79. MAKE_LOCAL_MK = $(BATCHO) \
  80. --eval '(load "org-compat.el")' \
  81. --eval '(load "../mk/org-fixup.el")' \
  82. --eval '(org-make-local-mk)'
  83. # Emacs must be started in lisp directory
  84. BATCHL = $(BATCH) \
  85. --eval '(add-to-list '"'"'load-path ".")'
  86. # How to generate org-loaddefs.el
  87. MAKE_ORG_INSTALL = $(BATCHL) \
  88. --eval '(load "org-compat.el")' \
  89. --eval '(load "../mk/org-fixup.el")' \
  90. --eval '(org-make-org-loaddefs)'
  91. # How to generate org-version.el
  92. MAKE_ORG_VERSION = $(BATCHL) \
  93. --eval '(load "org-compat.el")' \
  94. --eval '(load "../mk/org-fixup.el")' \
  95. --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)")'
  96. # How to byte-compile the whole source directory
  97. ELCDIR = $(BATCHL) \
  98. --eval '(batch-byte-recompile-directory 0)'
  99. # How to byte-compile a single file
  100. ELC = $(BATCHL) \
  101. --eval '(batch-byte-compile)'
  102. # How to make a pdf file from a texinfo file
  103. TEXI2PDF = texi2pdf --batch --clean --expand
  104. # How to make a pdf file from a tex file
  105. PDFTEX = pdftex
  106. # How to create directories with leading path components
  107. # MKDIR = mkdir -m 755 -p # try this if you have no install
  108. MKDIR = install -m 755 -d
  109. # How to create the info files from the texinfo file
  110. MAKEINFO = makeinfo
  111. # How to create the HTML file
  112. TEXI2HTML = makeinfo --html --number-sections --css-ref "https://www.gnu.org/software/emacs/manual.css"
  113. # How to find files
  114. FIND = find
  115. # How to remove files
  116. RM = rm -f
  117. # How to remove files recursively
  118. RMR = rm -fr
  119. # How to change file permissions
  120. # currently only needed for git-annex due to its "lockdown" feature
  121. CHMOD = chmod
  122. # How to copy the lisp files and elc files to their destination.
  123. # CP = cp -p # try this if you have no install
  124. CP = install -m 644 -p
  125. # How to obtain administrative privileges
  126. # leave blank if you don't need this
  127. # SUDO =
  128. SUDO = sudo
  129. # Name of the program to install info files
  130. # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
  131. INSTALL_INFO = install-info
  132. # target method for 'compile'
  133. ORGCM = dirall
  134. # ORGCM = dirall # 1x slowdown compared to default compilation method
  135. # ORGCM = single # 4x one Emacs process per compilation
  136. # ORGCM = source # 5x ditto, but remove compiled file immediately
  137. # ORGCM = slint1 # 3x possibly elicit more warnings
  138. # ORGCM = slint2 # 7x possibly elicit even more warnings