default.mk 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 = $(EMACS) -batch -Q \
  38. $(BTEST_PRE) -L lisp/ -L testing/ $(BTEST_POST) \
  39. --eval '(defconst org-release "$(ORGVERSION)-Test")' \
  40. -l testing/org-test.el \
  41. $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
  42. $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
  43. --eval '(setq org-confirm-babel-evaluate nil)' \
  44. -f org-test-run-batch-tests
  45. # Using emacs in batch mode.
  46. BATCH = $(EMACS) -batch -Q \
  47. -L . \
  48. --eval '(defconst org-release "$(ORGVERSION)-Make")' \
  49. # How to byte-compile the whole source directory
  50. ELCDIR = $(BATCH) \
  51. --eval '(batch-byte-recompile-directory 0)'
  52. # How to byte-compile a single source file
  53. ELC = $(BATCH) -f batch-byte-compile
  54. # How to make a pdf file from a texinfo file
  55. TEXI2PDF = texi2pdf --batch --clean
  56. # How to make a pdf file from a tex file
  57. PDFTEX = pdftex
  58. # How to create directories
  59. MKDIR = mkdir -p
  60. # How to create the info files from the texinfo file
  61. MAKEINFO = makeinfo
  62. # How to create the HTML file
  63. TEXI2HTML = makeinfo --html --number-sections
  64. # How to find files
  65. FIND = find
  66. # How to remove files
  67. RM = rm -f
  68. # How to remove files recursively
  69. RMR = rm -fr
  70. # How to stream edit a file
  71. SED = sed
  72. # How to copy the lisp files and elc files to their destination.
  73. # CP = cp -p # try this if there is no install
  74. CP = install -p
  75. # How to obtain administrative privileges
  76. # SUDO = # leave blank if you don't need this
  77. SUDO = sudo
  78. # Name of the program to install info files
  79. # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
  80. INSTALL_INFO = install-info