change defaults to something that should work on most Linux systems and Cygwin

* default.mk: change prefix to /usr/share and do some formatting

This change establishes the baseline installation path that should work
out-of-the-box on Linux and Cygwin when the install is done system-wide (which
needs administrator privileges).
This commit is contained in:
Achim Gratz 2011-07-12 20:11:15 +02:00
parent b0ebd4365e
commit 2386380c72
1 changed files with 13 additions and 12 deletions

View File

@ -3,16 +3,16 @@
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
# Name of your emacs binary # Name of your emacs binary
EMACS=emacs EMACS = emacs
# Where local software is found # Where local software is found
prefix=/usr/local prefix = /usr/share
# Where local lisp files go. # Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp lispdir = $(prefix)/emacs/site-lisp
# Where info files go. # Where info files go.
infodir = $(prefix)/share/info infodir = $(prefix)/info
##---------------------------------------------------------------------- ##----------------------------------------------------------------------
## YOU MAY NEED TO EDIT THESE ## YOU MAY NEED TO EDIT THESE
@ -20,28 +20,29 @@ infodir = $(prefix)/share/info
# Using emacs in batch mode. # Using emacs in batch mode.
BATCH=$(EMACS) -batch -q -no-site-file -eval \ BATCH = $(EMACS) -batch -q -no-site-file -eval \
"(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))" "(setq load-path (cons (expand-file-name \"./lisp/\") \
(cons \"$(lispdir)\" load-path)))"
# Specify the byte-compiler for compiling org-mode files # Specify the byte-compiler for compiling org-mode files
ELC= $(BATCH) -f batch-byte-compile ELC = $(BATCH) -f batch-byte-compile
# How to make a pdf file from a texinfo file # How to make a pdf file from a texinfo file
TEXI2PDF = texi2pdf TEXI2PDF = texi2pdf
# How to create directories # How to create directories
MKDIR = mkdir -p MKDIR = mkdir -p
# How to create the info files from the texinfo file # How to create the info files from the texinfo file
MAKEINFO = makeinfo MAKEINFO = makeinfo
# How to create the HTML file # How to create the HTML file
TEXI2HTML = makeinfo --html --number-sections TEXI2HTML = makeinfo --html --number-sections
TEXI2HTMLNOPSLIT = makeinfo --html --no-split --number-sections
# How to copy the lisp files and elc files to their distination. # How to copy the lisp files and elc files to their destination.
CP = cp -p # CP = cp -p # try this if there is no install
CP = install -p
# Name of the program to install info files # Name of the program to install info files
INSTALL_INFO=install-info INSTALL_INFO = install-info