add cleaning of temporary test files (with option to keep them)
[org-mode.git] / default.mk
blob961e659da84bf30d004a64f2ea77e019af1f5285
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
8 EMACS = emacs
10 # Where local software is found
11 prefix = /usr/share
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
23 TMPDIR ?= /tmp
24 testdir = $(TMPDIR)/tmp-orgtest
26 ##----------------------------------------------------------------------
27 ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
28 ##----------------------------------------------------------------------
30 # Using emacs in batch mode.
31 BATCH = $(EMACS) -batch -Q \
32 -L . \
33 --eval '(defconst org-release "$(ORGVERSION)-Make")' \
35 # How to run tests
36 BTEST_EXTRA = # placeholder
37 BTEST = $(EMACS) -batch \
38 $(BTEST_EXTRA) \
39 -L lisp/ \
40 --eval '(defconst org-release "$(ORGVERSION)-Test")' \
41 -l testing/org-test.el \
42 -eval "(setq org-confirm-babel-evaluate nil)" \
43 -f org-test-run-batch-tests
45 # How to byte-compile the whole source directory
46 ELCDIR = $(BATCH) \
47 --eval '(batch-byte-recompile-directory 0)'
49 # How to byte-compile a single source file
50 ELC = $(BATCH) -f batch-byte-compile
52 # How to make a pdf file from a texinfo file
53 TEXI2PDF = texi2pdf --batch --clean
55 # How to make a pdf file from a tex file
56 PDFTEX = pdftex
58 # How to create directories
59 MKDIR = mkdir -p
61 # How to create the info files from the texinfo file
62 MAKEINFO = makeinfo
64 # How to create the HTML file
65 TEXI2HTML = makeinfo --html --number-sections
67 # How to find files
68 FIND = find
70 # How to remove files
71 RM = rm -f
73 # How to remove files recursively
74 RMR = rm -fr
76 # How to stream edit a file
77 SED = sed
79 # How to copy the lisp files and elc files to their destination.
80 # CP = cp -p # try this if there is no install
81 CP = install -p
83 # How to obtain administrative privileges
84 # SUDO = # leave blank if you don't need this
85 SUDO = sudo
87 # Name of the program to install info files
88 # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
89 INSTALL_INFO = install-info