default.mk 3.9 KB

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