inject version strings into orgguide
[org-mode.git] / default.mk
bloba618be7dea0a9572891ad5b787fbe3bd6b976435
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
11 EMACS = emacs
13 # Where local software is found
14 prefix = /usr/share
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
29 TMPDIR ?= /tmp
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 ##----------------------------------------------------------------------
45 # How to run tests
46 req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
47 req-extra = --eval '(require '"'"'$(req))'
48 BTEST = $(BATCH) \
49 $(BTEST_PRE) \
50 --eval '(add-to-list '"'"'load-path "lisp")' \
51 --eval '(add-to-list '"'"'load-path "testing")' \
52 $(BTEST_POST) \
53 -l org-install.el \
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
65 ELCDIR = $(BATCH) \
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
73 PDFTEX = pdftex
75 # How to create directories
76 MKDIR = mkdir -p
78 # How to create the info files from the texinfo file
79 MAKEINFO = makeinfo
81 # How to create the HTML file
82 TEXI2HTML = makeinfo --html --number-sections
84 # How to find files
85 FIND = find
87 # How to remove files
88 RM = rm -f
90 # How to remove files recursively
91 RMR = rm -fr
93 # How to stream edit a file
94 SED = sed
96 # How to copy the lisp files and elc files to their destination.
97 # CP = cp -p # try this if there is no install
98 CP = install -p
100 # How to obtain administrative privileges
101 # SUDO = # leave blank if you don't need this
102 SUDO = sudo
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)")'