default.mk 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ##----------------------------------------------------------------------
  2. ## NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
  3. ##----------------------------------------------------------------------
  4. ## CHECK AND ADAPT THE FOLLOWING DEFINITIONS
  5. ##-8<-------------------------------------------------------------------
  6. # Override default target if desired or define your own default target
  7. # oldorg: # have plain "make" do the same things the old Makefile did
  8. # Name of your emacs binary
  9. EMACS = emacs
  10. # Where local software is found
  11. prefix = /usr/share
  12. # Where local lisp files go.
  13. lispdir= $(prefix)/emacs/site-lisp/org
  14. # Where local data files go.
  15. datadir = $(prefix)/emacs/etc/org
  16. # Where info files go.
  17. infodir = $(prefix)/info
  18. # Define if you only need info documentation, the default includes html and pdf
  19. # ORG_MAKE_DOC = info # html pdf
  20. # Where to create temporary files for the testsuite
  21. TMPDIR ?= /tmp
  22. testdir = $(TMPDIR)/tmp-orgtest
  23. # Configuration for testing
  24. BTEST_PRE = # add options before standard load-path
  25. BTEST_POST = # add options after standard load path
  26. # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
  27. # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
  28. BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh # R
  29. # R is not activated by default because it requires ess to be installed and configured
  30. BTEST_EXTRA = # extra packages to require for testing
  31. ##->8-------------------------------------------------------------------
  32. ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
  33. ##----------------------------------------------------------------------
  34. # How to run tests
  35. req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
  36. req-extra = --eval '(require '"'"'$(req))'
  37. BTEST = $(BATCH) \
  38. $(BTEST_PRE) \
  39. --eval '(add-to-list '"'"'load-path "./lisp")' \
  40. --eval '(add-to-list '"'"'load-path "./testing")' \
  41. $(BTEST_POST) \
  42. -l org-install.el \
  43. -l testing/org-test.el \
  44. $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
  45. $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
  46. --eval '(setq org-confirm-babel-evaluate nil)' \
  47. -f org-test-run-batch-tests
  48. # Using emacs in batch mode.
  49. # BATCH = $(EMACS) -batch -vanilla # XEmacs
  50. BATCH = $(EMACS) -batch -Q
  51. # Emacs must be started in lisp directory
  52. BATCHL = $(BATCH) \
  53. --eval '(add-to-list '"'"'load-path ".")'
  54. # How to generate org-install.el
  55. MAKE_ORG_INSTALL = $(BATCHL) \
  56. --eval '(load "org-compat.el")' \
  57. --eval '(load "../UTILITIES/org-fixup.el")' \
  58. --eval '(org-make-org-install)'
  59. # How to generate org-version.el
  60. MAKE_ORG_VERSION = $(BATCHL) \
  61. --eval '(load "org-compat.el")' \
  62. --eval '(load "../UTILITIES/org-fixup.el")' \
  63. --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "$(datadir)")'
  64. # How to byte-compile the whole source directory
  65. ELCDIR = $(BATCHL) \
  66. --eval '(batch-byte-recompile-directory 0)'
  67. # How to make a pdf file from a texinfo file
  68. TEXI2PDF = texi2pdf --batch --clean
  69. # How to make a pdf file from a tex file
  70. PDFTEX = pdftex
  71. # How to create directories
  72. MKDIR = mkdir -p
  73. # How to create the info files from the texinfo file
  74. MAKEINFO = makeinfo
  75. # How to create the HTML file
  76. TEXI2HTML = makeinfo --html --number-sections
  77. # How to find files
  78. FIND = find
  79. # How to remove files
  80. RM = rm -f
  81. # How to remove files recursively
  82. RMR = rm -fr
  83. # How to stream edit a file
  84. SED = sed
  85. # How to copy the lisp files and elc files to their destination.
  86. # CP = cp -p # try this if there is no install
  87. CP = install -p
  88. # How to obtain administrative privileges
  89. # SUDO = # leave blank if you don't need this
  90. SUDO = sudo
  91. # Name of the program to install info files
  92. # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
  93. INSTALL_INFO = install-info