1 ##----------------------------------------------------------------------
2 ## NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
3 ##----------------------------------------------------------------------
4 ## CHECK AND ADAPT THE FOLLOWING DEFINITIONS
5 ##----------------------------------------------------------------------
7 # Name of your emacs binary
10 # Where local software is found
13 # Where local lisp files go.
14 lispdir
= $(prefix)/emacs
/site-lisp
/org
16 # Where local data files go.
17 datadir = $(prefix)/emacs
/etc
/org
19 # Where info files go.
20 infodir = $(prefix)/info
22 # Where to create temporary files for the testsuite
24 testdir
= $(TMPDIR
)/tmp-orgtest
26 # Configuration for testing
27 BTEST_PRE
= # add options before standard load-path
28 BTEST_POST
= # add options after standard load path
29 # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
30 # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
31 BTEST_OB_LANGUAGES
= awk C fortran maxima lilypond octave python sh
# R
32 # R is not activated by default because it requires ess to be installed and configured
33 BTEST_EXTRA
= # extra packages to require for testing
35 ##----------------------------------------------------------------------
36 ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
37 ##----------------------------------------------------------------------
40 req-ob-lang
= --eval
'(require '"'"'ob-$(ob-lang))'
41 req-extra
= --eval
'(require '"'"'$(req))'
42 BTEST
= $(EMACS
) -batch
-Q \
43 $(BTEST_PRE
) -L lisp
/ -L testing
/ $(BTEST_POST
) \
44 --eval
'(defconst org-release "$(ORGVERSION)-Test")' \
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
51 # Using emacs in batch mode.
52 BATCH
= $(EMACS
) -batch
-Q \
54 --eval
'(defconst org-release "$(ORGVERSION)-Make")' \
56 # How to byte-compile the whole source directory
58 --eval
'(batch-byte-recompile-directory 0)'
60 # How to byte-compile a single source file
61 ELC
= $(BATCH
) -f batch-byte-compile
63 # How to make a pdf file from a texinfo file
64 TEXI2PDF
= texi2pdf
--batch
--clean
66 # How to make a pdf file from a tex file
69 # How to create directories
72 # How to create the info files from the texinfo file
75 # How to create the HTML file
76 TEXI2HTML
= makeinfo --html
--number-sections
84 # How to remove files recursively
87 # How to stream edit a file
90 # How to copy the lisp files and elc files to their destination.
91 # CP = cp -p # try this if there is no install
94 # How to obtain administrative privileges
95 # SUDO = # leave blank if you don't need this
98 # Name of the program to install info files
99 # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
100 INSTALL_INFO
= install-info