mk/default.mk, testing/org-test.el: set org-startup-folded to nil
[org-mode.git] / mk / default.mk
blob886efc6309f800c06829b6f1ba0d2167d4386f05
1 ##----------------------------------------------------------------------
2 ## NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
3 ##-8<-------------------------------------------------------------------
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 # Define if you only need info documentation, the default includes html and pdf
23 #ORG_MAKE_DOC = info # html pdf
25 # Define if you want to include some (or all) files from contrib/lisp
26 # just the filename please (no path prefix, no .el suffix), maybe with globbing
27 #ORG_ADD_CONTRIB = ox-* # e.g. the contributed exporter
29 # Where to create temporary files for the testsuite
30 # respect TMPDIR if it is already defined in the environment
31 TMPDIR ?= /tmp
32 testdir = $(TMPDIR)/tmp-orgtest
34 # Configuration for testing
35 # add options before standard load-path
36 BTEST_PRE =
37 # add options after standard load path
38 BTEST_POST =
39 # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
40 # -L <path-to>/ess # needed for running R tests
41 # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
42 BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave perl python
43 # R # requires ESS to be installed and configured
44 # ruby # requires inf-ruby to be installed and configured
45 # extra packages to require for testing
46 BTEST_EXTRA =
47 # ess-site # load ESS for R tests
48 ##->8-------------------------------------------------------------------
49 ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
50 ##----------------------------------------------------------------------
52 # How to run tests
53 req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
54 lst-ob-lang = ($(ob-lang) . t)
55 req-extra = --eval '(require '"'"'$(req))'
56 BTEST_RE ?= \\(org\\|ob\\)
57 BTEST = $(BATCH) \
58 $(BTEST_PRE) \
59 --eval '(add-to-list '"'"'load-path (concat default-directory "lisp"))' \
60 --eval '(add-to-list '"'"'load-path (concat default-directory "testing"))' \
61 $(BTEST_POST) \
62 -l org-batch-test-init \
63 --eval '(setq \
64 org-batch-test t \
65 org-babel-load-languages \
66 (quote ($(foreach ob-lang,$(BTEST_OB_LANGUAGES) emacs-lisp sh org,$(lst-ob-lang)))) \
67 org-test-select-re "$(BTEST_RE)" \
68 )' \
69 -l org-loaddefs.el \
70 -l cl -l testing/org-test.el \
71 -l ert -l org -l ox \
72 $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
73 --eval '(org-test-run-batch-tests org-test-select-re)'
75 # Using emacs in batch mode.
76 # BATCH = $(EMACS) -batch -vanilla # XEmacs
77 BATCH = $(EMACS) -batch -Q \
78 --eval '(setq vc-handled-backends nil org-startup-folded nil)'
80 # Emacs must be started in toplevel directory
81 BATCHO = $(BATCH) \
82 --eval '(add-to-list '"'"'load-path "./lisp")'
84 # How to generate local.mk
85 MAKE_LOCAL_MK = $(BATCHO) \
86 --eval '(load "org-compat.el")' \
87 --eval '(load "../mk/org-fixup.el")' \
88 --eval '(org-make-local-mk)'
90 # Emacs must be started in lisp directory
91 BATCHL = $(BATCH) \
92 --eval '(add-to-list '"'"'load-path ".")'
94 # How to generate org-loaddefs.el
95 MAKE_ORG_INSTALL = $(BATCHL) \
96 --eval '(load "org-compat.el")' \
97 --eval '(load "../mk/org-fixup.el")' \
98 --eval '(org-make-org-loaddefs)'
100 # How to generate org-version.el
101 MAKE_ORG_VERSION = $(BATCHL) \
102 --eval '(load "org-compat.el")' \
103 --eval '(load "../mk/org-fixup.el")' \
104 --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "'$(datadir)'")'
106 # How to byte-compile the whole source directory
107 ELCDIR = $(BATCHL) \
108 --eval '(batch-byte-recompile-directory 0)'
110 # How to byte-compile a single file
111 ELC = $(BATCHL) \
112 --eval '(batch-byte-compile)'
114 # How to make a pdf file from a texinfo file
115 TEXI2PDF = texi2pdf --batch --clean --expand
117 # How to make a pdf file from a tex file
118 PDFTEX = pdftex
120 # How to create directories with leading path components
121 # MKDIR = mkdir -m 755 -p # try this if you have no install
122 MKDIR = install -m 755 -d
124 # How to create the info files from the texinfo file
125 MAKEINFO = makeinfo
127 # How to create the HTML file
128 TEXI2HTML = makeinfo --html --number-sections
130 # How to find files
131 FIND = find
133 # How to remove files
134 RM = rm -f
136 # How to remove files recursively
137 RMR = rm -fr
139 # How to copy the lisp files and elc files to their destination.
140 # CP = cp -p # try this if you have no install
141 CP = install -m 644 -p
143 # How to obtain administrative privileges
144 # leave blank if you don't need this
145 # SUDO =
146 SUDO = sudo
148 # Name of the program to install info files
149 # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
150 INSTALL_INFO = install-info
152 # target method for 'compile'
153 ORGCM = dirall
154 # ORGCM = dirall # 1x slowdown compared to default compilation method
155 # ORGCM = single # 4x one Emacs process per compilation
156 # ORGCM = source # 5x ditto, but remove compiled file immediately
157 # ORGCM = slint1 # 3x possibly elicit more warnings
158 # ORGCM = slint2 # 7x possibly elicit even more warnings