default.mk 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. # Where to create temporary files for the testsuite
  19. # respect TMPDIR if it is already defined in the environment
  20. TMPDIR ?= /tmp
  21. testdir = $(TMPDIR)/tmp-orgtest
  22. # Configuration for testing
  23. # add options before standard load-path
  24. BTEST_PRE =
  25. # add options after standard load path
  26. BTEST_POST =
  27. # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
  28. # -L <path-to>/ess # needed for running R tests
  29. # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
  30. BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh
  31. # R # requires ESS to be installed and configured
  32. # extra packages to require for testing
  33. BTEST_EXTRA =
  34. # ess-site # load ESS for R tests
  35. ##->8-------------------------------------------------------------------
  36. ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
  37. ##----------------------------------------------------------------------
  38. # How to run tests
  39. req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
  40. req-extra = --eval '(require '"'"'$(req))'
  41. BTEST = $(BATCH) \
  42. $(BTEST_PRE) \
  43. --eval '(add-to-list '"'"'load-path "./lisp")' \
  44. --eval '(add-to-list '"'"'load-path "./testing")' \
  45. $(BTEST_POST) \
  46. -l org-install.el \
  47. -l testing/org-test.el \
  48. $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
  49. $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
  50. --eval '(setq org-confirm-babel-evaluate nil)' \
  51. -f org-test-run-batch-tests
  52. # Using emacs in batch mode.
  53. # BATCH = $(EMACS) -batch -vanilla # XEmacs
  54. BATCH = $(EMACS) -batch -Q
  55. # How to generate local.mk
  56. MAKE_LOCAL_MK = $(BATCH) \
  57. --eval '(add-to-list '"'"'load-path "./lisp")' \
  58. --eval '(load "org-compat.el")' \
  59. --eval '(load "../UTILITIES/org-fixup.el")' \
  60. --eval '(org-make-local-mk)'
  61. # Emacs must be started in lisp directory
  62. BATCHL = $(BATCH) \
  63. --eval '(add-to-list '"'"'load-path ".")'
  64. # How to generate org-install.el
  65. MAKE_ORG_INSTALL = $(BATCHL) \
  66. --eval '(load "org-compat.el")' \
  67. --eval '(load "../UTILITIES/org-fixup.el")' \
  68. --eval '(org-make-org-install)'
  69. # How to generate org-version.el
  70. MAKE_ORG_VERSION = $(BATCHL) \
  71. --eval '(load "org-compat.el")' \
  72. --eval '(load "../UTILITIES/org-fixup.el")' \
  73. --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "$(datadir)")'
  74. # How to byte-compile the whole source directory
  75. ELCDIR = $(BATCHL) \
  76. --eval '(batch-byte-recompile-directory 0)'
  77. # How to byte-compile a single file
  78. ELC = $(BATCHL) \
  79. --eval '(batch-byte-compile)'
  80. # How to make a pdf file from a texinfo file
  81. TEXI2PDF = texi2pdf --batch --clean
  82. # How to make a pdf file from a tex file
  83. PDFTEX = pdftex
  84. # How to create directories with leading path components
  85. # MKDIR = mkdir -m 755 -p # try this if you have no install
  86. MKDIR = install -m 755 -d
  87. # How to create the info files from the texinfo file
  88. MAKEINFO = makeinfo
  89. # How to create the HTML file
  90. TEXI2HTML = makeinfo --html --number-sections
  91. # How to find files
  92. FIND = find
  93. # How to remove files
  94. RM = rm -f
  95. # How to remove files recursively
  96. RMR = rm -fr
  97. # How to copy the lisp files and elc files to their destination.
  98. # CP = cp -p # try this if you have no install
  99. CP = install -m 644 -p
  100. # How to obtain administrative privileges
  101. # leave blank if you don't need this
  102. # SUDO =
  103. SUDO = sudo
  104. # Name of the program to install info files
  105. # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
  106. INSTALL_INFO = install-info