####======= Common Declarations for *all* ESS -*- Makefile -*- s ==========
###
### File: $Revision: 5.22 $.
###

PREFIX=/usr/local

# no csh please
SHELL = /bin/sh

## emacs distribution that you are installing ESS for.
##
## emacs
EMACS=emacs
## xemacs
#EMACS=xemacs

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

# default xemacs package installation tree
# necessary for target xemacs-links
XEMACSDIR=$(PREFIX)/lib/xemacs

## 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="-f mychangelogfunc"
EMACSLOGCVS=-f vc-update-change-log

# Destination of your info files
# defaults to the info directory relative to the doc directory
INFODIR =$(PREFIX)/info

# Destination of your byte-compiled elisp (.elc) files 
# Emacs
LISPDIR =$(PREFIX)/share/emacs/site-lisp
# XEmacs
#LISPDIR = $(XEMACSDIR)/xemacs-packages/lisp/ess

## two install commands are needed; one to create directories, 
## if necessary, and another to copy the files
#  to create directories
INSTALLDIR = install -d 
#INSTALLDIR = mkdir -p

## file copying commands expect source-file target-directory
#  to copy the files
INSTALL = cp -p
#INSTALL = install 

## the sed that you want to use
SED = sed

# 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)
ESSDIR=ess-$(ESSVERSION)

## Set ESSVERSIONTAG to ESS-$(ESSVERSION) with .'s replaced by -s.
## CVS tags can NOT contain .'s.
## 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, use the command line; for example:
## make tag ESSVERSION=5.2.0 ESSVERSIONTAG=ESS-5-2-0
ESSVERSIONTAG=ESS-$(shell sed 's/\./-/g' VERSION)

UPLOAD_SITE = cvs.analytics.washington.edu
UPLOAD_DIR = /home/ess/downloads

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