default.mk 3.9 KB

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