default.mk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##----------------------------------------------------------------------
  2. ## NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
  3. ##----------------------------------------------------------------------
  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. # Where to create temporary files for the testsuite
  17. TMPDIR ?= /tmp
  18. testdir = $(TMPDIR)/tmp-orgtest
  19. # Configuration for testing
  20. BTEST_PRE = # add options before standard load-path
  21. BTEST_POST = # add options after standard load path
  22. # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
  23. # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
  24. BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh # R
  25. # R is not activated by default because it requires ess to be installed and configured
  26. BTEST_EXTRA = # extra packages to require for testing
  27. ##----------------------------------------------------------------------
  28. ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
  29. ##----------------------------------------------------------------------
  30. # How to run tests
  31. req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
  32. req-extra = --eval '(require '"'"'$(req))'
  33. BTEST = $(EMACS) -batch -Q \
  34. $(BTEST_PRE) -L lisp/ -L testing/ $(BTEST_POST) \
  35. --eval '(defconst org-release "$(ORGVERSION)-Test")' \
  36. -l testing/org-test.el \
  37. $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
  38. $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
  39. --eval '(setq org-confirm-babel-evaluate nil)' \
  40. -f org-test-run-batch-tests
  41. # Using emacs in batch mode.
  42. BATCH = $(EMACS) -batch -Q \
  43. -L . \
  44. --eval '(defconst org-release "$(ORGVERSION)-Make")' \
  45. # How to byte-compile the whole source directory
  46. ELCDIR = $(BATCH) \
  47. --eval '(batch-byte-recompile-directory 0)'
  48. # How to byte-compile a single source file
  49. ELC = $(BATCH) -f batch-byte-compile
  50. # How to make a pdf file from a texinfo file
  51. TEXI2PDF = texi2pdf --batch --clean
  52. # How to make a pdf file from a tex file
  53. PDFTEX = pdftex
  54. # How to create directories
  55. MKDIR = mkdir -p
  56. # How to create the info files from the texinfo file
  57. MAKEINFO = makeinfo
  58. # How to create the HTML file
  59. TEXI2HTML = makeinfo --html --number-sections
  60. # How to find files
  61. FIND = find
  62. # How to remove files
  63. RM = rm -f
  64. # How to remove files recursively
  65. RMR = rm -fr
  66. # How to stream edit a file
  67. SED = sed
  68. # How to copy the lisp files and elc files to their destination.
  69. # CP = cp -p # try this if there is no install
  70. CP = install -p
  71. # How to obtain administrative privileges
  72. # SUDO = # leave blank if you don't need this
  73. SUDO = sudo
  74. # Name of the program to install info files
  75. # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
  76. INSTALL_INFO = install-info