replace the remaining occurences of sed with emacs scripts, implement mkdir with...
[org-mode.git] / default.mk
blob4d290486b703edf6899700a2d635674a16a667cb
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 # Where to create temporary files for the testsuite
26 TMPDIR ?= /tmp # respect TMPDIR if it is already defined in the environment
27 testdir = $(TMPDIR)/tmp-orgtest
29 # Configuration for testing
30 BTEST_PRE = # add options before standard load-path
31 BTEST_POST = # add options after standard load path
32 # -L <path-to>/ert # needed for Emacs23, Emacs24 has ert built in
33 # -L <path-to>/htmlize # need at least version 1.34 for source code formatting
34 BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh # R
35 # R is not activated by default because it requires ess to be installed and configured
36 BTEST_EXTRA = # extra packages to require for testing
38 ##->8-------------------------------------------------------------------
39 ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
40 ##----------------------------------------------------------------------
42 # How to run tests
43 req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
44 req-extra = --eval '(require '"'"'$(req))'
45 BTEST = $(BATCH) \
46 $(BTEST_PRE) \
47 --eval '(add-to-list '"'"'load-path "./lisp")' \
48 --eval '(add-to-list '"'"'load-path "./testing")' \
49 $(BTEST_POST) \
50 -l org-install.el \
51 -l testing/org-test.el \
52 $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \
53 $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
54 --eval '(setq org-confirm-babel-evaluate nil)' \
55 -f org-test-run-batch-tests
57 # Using emacs in batch mode.
58 # BATCH = $(EMACS) -batch -vanilla # XEmacs
59 BATCH = $(EMACS) -batch -Q
61 # How to generate local.mk
62 MAKE_LOCAL_MK = $(BATCH) \
63 --eval '(add-to-list '"'"'load-path "./lisp")' \
64 --eval '(load "org-compat.el")' \
65 --eval '(load "../UTILITIES/org-fixup.el")' \
66 --eval '(org-make-local-mk)'
68 # Emacs must be started in lisp directory
69 BATCHL = $(BATCH) \
70 --eval '(add-to-list '"'"'load-path ".")'
72 # How to generate org-install.el
73 MAKE_ORG_INSTALL = $(BATCHL) \
74 --eval '(load "org-compat.el")' \
75 --eval '(load "../UTILITIES/org-fixup.el")' \
76 --eval '(org-make-org-install)'
78 # How to generate org-version.el
79 MAKE_ORG_VERSION = $(BATCHL) \
80 --eval '(load "org-compat.el")' \
81 --eval '(load "../UTILITIES/org-fixup.el")' \
82 --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)" "$(datadir)")'
84 # How to byte-compile the whole source directory
85 ELCDIR = $(BATCHL) \
86 --eval '(batch-byte-recompile-directory 0)'
88 # How to make a pdf file from a texinfo file
89 TEXI2PDF = texi2pdf --batch --clean
91 # How to make a pdf file from a tex file
92 PDFTEX = pdftex
94 # How to create directories with leading path components
95 # MKDIR = mkdir -m 755 -p # try this if you have no install
96 MKDIR = install -m 755 -d
98 # How to create the info files from the texinfo file
99 MAKEINFO = makeinfo
101 # How to create the HTML file
102 TEXI2HTML = makeinfo --html --number-sections
104 # How to find files
105 FIND = find
107 # How to remove files
108 RM = rm -f
110 # How to remove files recursively
111 RMR = rm -fr
113 # How to copy the lisp files and elc files to their destination.
114 # CP = cp -p # try this if you have no install
115 CP = install -m 644 -p
117 # How to obtain administrative privileges
118 # SUDO = # leave blank if you don't need this
119 SUDO = sudo
121 # Name of the program to install info files
122 # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
123 INSTALL_INFO = install-info