####======= Common Declarations for *all* ESS -*- Makefile -*- s ==========

PREFIX=/usr/local

# no csh please
SHELL = /bin/sh

## emacs distribution that you are installing ESS for.
##
## EMACS 21:  {MM: Keep this as default -- ``has always been''}
EMACS=emacs
## XEMACS 21:
#EMACS=xemacs

EMACSBATCH = $(EMACS) -batch -no-site-file -no-init-file

## Updating ChangeLog via CVS with emacs requires the vc package!
## If this setting doesn't suit you, you can use the command line:
## make ChangeLog EMACSLOGCVS="myemacs -mybatchflags -mychangelogflags"

# if Xemacs:
#EMACSLOGCVS=$(EMACSBATCH) -f vc-update-changelogs
# if Emacs:
#EMACSLOGCVS=$(EMACSBATCH) -f vc-update-change-log

## Some install commands expect target-directory source-file,
## but we want source-file target-directory; we also want to
## preserve owner, group and time-stamp; lastly, note that we
## are assuming that the target-directory exists
INSTALL = cp -p

# What GZCAT is called on your system (GNU gzip "cat")
#GZCAT = gzcat
GZCAT = zcat

# program to convert .texi{nfo} to .info
MAKEINFO = makeinfo
MAKETXT = $(MAKEINFO) --no-validate --no-headers --no-split -o -

## Set ESSVERSION to the contents of VERSION
## This will only work with GNU make, but you won't
## need to change this unless you are an ESS developer.
## If you don't have GNU make, edit this file; for example:
## ESSVERSION=5.2.0
ESSVERSION=$(shell cat ./VERSION 2> /dev/null || cat ../VERSION)

# Destination of your info files relative to the doc directory
# defaults to the info directory
INFODIR = ../info

# Destination of your byte-compiled elisp (.elc) files
# relative to the lisp directory (which is the default)
LISPDIR = .

.SUFFIXES: .i3 .m3 .nw .tex .dvi .html .c .h .el .elc
