introduce $(SUDO) to make install with administrative privileges customizable
[org-mode.git] / default.mk
blob0835938a588798952d458b3ff7f78a79517f8dd9
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 ##----------------------------------------------------------------------
23 ## YOU MAY NEED TO ADAPT THESE DEFINITIONS
24 ##----------------------------------------------------------------------
26 # Using emacs in batch mode.
27 BATCH = $(EMACS) -batch -Q \
28 -L . \
29 --eval '(defconst org-release "$(ORGVERSION)-Make")' \
31 # How to run tests
32 BTEST_EXTRA = # placeholder
33 BTEST = $(EMACS) -batch \
34 $(BTEST_EXTRA) \
35 -L lisp/ \
36 --eval '(defconst org-release "$(ORGVERSION)-Test")' \
37 -l testing/org-test.el \
38 -eval "(setq org-confirm-babel-evaluate nil)" \
39 -f org-test-run-batch-tests
41 # How to byte-compile the whole source directory
42 ELCDIR = $(BATCH) \
43 --eval '(batch-byte-recompile-directory 0)'
45 # How to byte-compile a single source file
46 ELC = $(BATCH) -f batch-byte-compile
48 # How to make a pdf file from a texinfo file
49 TEXI2PDF = texi2pdf --batch --clean
51 # How to make a pdf file from a tex file
52 PDFTEX = pdftex
54 # How to create directories
55 MKDIR = mkdir -p
57 # How to create the info files from the texinfo file
58 MAKEINFO = makeinfo
60 # How to create the HTML file
61 TEXI2HTML = makeinfo --html --number-sections
63 # How to find files
64 FIND = find
66 # How to remove files
67 RM = rm -f
69 # How to remove files recursively
70 RMR = rm -fr
72 # How to stream edit a file
73 SED = sed
75 # How to copy the lisp files and elc files to their destination.
76 # CP = cp -p # try this if there is no install
77 CP = install -p
79 # How to obtain administrative privileges
80 # SUDO = # leave blank if you don't need this
81 SUDO = sudo
83 # Name of the program to install info files
84 # INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
85 INSTALL_INFO = install-info