1 ##----------------------------------------------------------------------
2 ## NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
3 ##----------------------------------------------------------------------
4 ## CHECK AND ADAPT THE FOLLOWING DEFINITIONS
5 ##-8<-------------------------------------------------------------------
7 # Override default target if desired or define your own default target
8 # oldorg: # have plain "make" do the same things the old Makefile did
10 # Name of your emacs binary
13 # Where local software is found
16 # Where local lisp files go.
17 lispdir
= $(prefix)/emacs
/site-lisp
/org
19 # Where local data files go.
20 datadir = $(prefix)/emacs
/etc
/org
22 # Where info files go.
23 infodir = $(prefix)/info
25 # Define if you only need info documentation, the default includes html and pdf
26 # ORG_MAKE_DOC = info # html pdf
28 # Where to create temporary files for the testsuite
30 testdir
= $(TMPDIR
)/tmp-orgtest
32 # Configuration for testing
33 BTEST_PRE
= # add options before standard load-path
34 BTEST_POST
= # add options after standard load path
35 # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
36 # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
37 BTEST_OB_LANGUAGES
= awk C fortran maxima lilypond octave python sh
# R
38 # R is not activated by default because it requires ess to be installed and configured
39 BTEST_EXTRA
= # extra packages to require for testing
41 ##->8-------------------------------------------------------------------
42 ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
43 ##----------------------------------------------------------------------
46 req-ob-lang
= --eval
'(require '"'"'ob-$(ob-lang))'
47 req-extra
= --eval
'(require '"'"'$(req))'
50 --eval
'(add-to-list '"'"'load-path "lisp")' \
51 --eval
'(add-to-list '"'"'load-path "testing")' \
54 -l testing
/org-test.el \
55 $(foreach ob-lang
,$(BTEST_OB_LANGUAGES
),$(req-ob-lang
)) \
56 $(foreach req
,$(BTEST_EXTRA
),$(req-extra
)) \
57 --eval
'(setq org-confirm-babel-evaluate nil)' \
58 -f org-test-run-batch-tests
60 # Using emacs in batch mode.
61 BATCH
= $(EMACS
) -batch
-Q
62 # BATCH = $(EMACS) -batch -vanilla # XEmacs
64 # How to byte-compile the whole source directory
66 --eval
'(add-to-list '"'"'load-path ".")' \
67 --eval
'(batch-byte-recompile-directory 0)'
69 # How to make a pdf file from a texinfo file
70 TEXI2PDF
= texi2pdf
--batch
--clean
72 # How to make a pdf file from a tex file
75 # How to create directories
78 # How to create the info files from the texinfo file
81 # How to create the HTML file
82 TEXI2HTML
= makeinfo --html
--number-sections
90 # How to remove files recursively
93 # How to stream edit a file
96 # How to copy the lisp files and elc files to their destination.
97 # CP = cp -p # try this if there is no install
100 # How to obtain administrative privileges
101 # SUDO = # leave blank if you don't need this
104 # Name of the program to install info files
105 # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
106 INSTALL_INFO
= install-info
108 # How to generate org-install.el
109 MAKE_ORG_INSTALL
= $(BATCH
) \
110 --eval
'(add-to-list '"'"'load-path ".")' \
111 --eval
'(load "org-compat.el")' \
112 --eval
'(load "../UTILITIES/org-fixup.el")' \
113 --eval
'(org-make-org-install "$(CURDIR)/lisp/org-install.el")'
115 # How to generate org-version.el
116 MAKE_ORG_VERSION
= $(BATCH
) \
117 --eval
'(add-to-list '"'"'load-path ".")' \
118 --eval
'(load "org-compat.el")' \
119 --eval
'(load "../UTILITIES/org-fixup.el")' \
120 --eval
'(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "$(datadir)")'