make sure org-release is defined in batch mode
[org-mode.git] / default.mk
blob24d48e48ae4747b9e4cdbf863cca0ee359c9b423
1 ##----------------------------------------------------------------------
2 ## YOU MUST EDIT THE FOLLOWING LINES
3 ##----------------------------------------------------------------------
5 # Name of your emacs binary
6 EMACS = emacs
8 # Where local software is found
9 prefix = /usr/share
11 # Where local lisp files go.
12 lispdir = $(prefix)/emacs/site-lisp/org
14 # Where local data files go.
15 datadir = $(prefix)/emacs/etc/org
17 # Where info files go.
18 infodir = $(prefix)/info
20 ##----------------------------------------------------------------------
21 ## YOU MAY NEED TO EDIT THESE
22 ##----------------------------------------------------------------------
24 # Using emacs in batch mode.
25 BATCH = $(EMACS) -batch -Q \
26 -L . \
27 --eval '(defconst org-release "$(ORGVERSION)-Make")' \
29 # run tests
30 BTEST = $(EMACS) -batch \
31 $(BTEST_EXTRA) \
32 -L lisp/ \
33 --eval '(defconst org-release "$(ORGVERSION)-Test")' \
34 -l testing/org-test.el \
35 -eval "(setq org-confirm-babel-evaluate nil)" \
36 -f org-test-run-batch-tests
38 # How to byte-compile the whole source directory
39 ELCDIR = $(BATCH) \
40 --eval '(batch-byte-recompile-directory 0)'
42 # How to byte-compile a single source file
43 ELC = $(BATCH) -f batch-byte-compile
45 # How to make a pdf file from a texinfo file
46 TEXI2PDF = texi2pdf
48 # How to make a pdf file from a tex file
49 PDFTEX = pdftex
51 # How to create directories
52 MKDIR = mkdir -p
54 # How to create the info files from the texinfo file
55 MAKEINFO = makeinfo
57 # How to create the HTML file
58 TEXI2HTML = makeinfo --html --number-sections
60 # How to find files
61 FIND = find
63 # How to remove files
64 RM = rm -f
66 # How to remove files recursively
67 RMR = rm -fr
69 # How to stream edit a file
70 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
76 # Name of the program to install info files
77 INSTALL_INFO = install-info