default.mk 2.8 KB

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