home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume26
/
ee-1.23
/
part01
/
Makefile.templ
< prev
next >
Wrap
Makefile
|
1993-06-20
|
3KB
|
99 lines
# Makefile for easy-edit 1.1
#
#
#Easy-edit novice screen editor for Unix systems with GNU emacs
#
# Copyright (C) 1992 Larry Broda
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# By Larry Broda
# Department of Psychology
# University of Illinois at Urbana-Champaign
# Email: lbroda@s.psych.uiuc.edu
# 4/8/92
#
#
#
# STEPS: 1. Make sure you have GNU emacs installed and working.
# 2. Make sure you modify the following variables in this
# Makefile to reflect your system:
#
# EMACS_EXE - The path to your GNU emacs executable file
# EE_LIBDIR - The directory where you will keep the
# Easyedit program and documentation files.
# EXEDIR - The directory where you want the easy-edit
# script installed.
# EE_RESUME_CMD - the command users will use to resume
# ee (emacs) after suspending it with ^Z.
# Will usually be fg or exit.
# MAN_DIR - Where to put the man pages. (don`t include
# the section; edit Makefile for other than
# section 1).
#
# Make sure EE_LIBDIR and EXEDIR exist.
#
# 3. Make sure your account has privelege to install the
# programs in the given directories.
#
# 4. Do "make easy-edit"
# 5. Do "make install"
# 6. Do "make install-man" if you want the man pages installed.
#
#
# SET THESE TO AGREE WITH YOUR INSTALLATION:
#
# Examples:
#
# EMACS_EXE=/usr/local/bin/emacs
# EXEDIR=/usr/local/bin
# EMACS_EXE=/usr/local/bin/emacs
# EE_LIBDIR=/usr/local/lib/easyedit
# EE_RESUME_CMD=fg
# MAN_DIR=/usr/local/man
#
EMACS_EXE=
EXEDIR=
EE_LIBDIR=
EE_RESUME_CMD=
MAN_DIR=
#
#
all: easy-edit
easy-edit: ee.sh.template
echo "#! /bin/sh " > easy-edit
echo "# " >> easy-edit
echo "export EE_LIB ; EE_LIB=${EE_LIBDIR}" >> easy-edit
echo "export EE_RESUME_CMD ; EE_RESUME_CMD=${EE_RESUME_CMD}" >> easy-edit
echo "GNUemacs=${EMACS_EXE}" >> easy-edit
echo "# " >> easy-edit
cat ee.sh.template >> easy-edit
install: easy-edit
cp easyedit.el ${EE_LIBDIR}/easyedit.el
cp HELP-WINDOW ${EE_LIBDIR}/HELP-WINDOW
cp HELP-WINDOW-ADVANCED ${EE_LIBDIR}/HELP-WINDOW-ADVANCED
cp HELP-MANUAL ${EE_LIBDIR}/HELP-MANUAL
mv easy-edit ${EXEDIR}/easy-edit
rm -f ${EXEDIR}/ee
ln ${EXEDIR}/easy-edit ${EXEDIR}/ee
chmod 755 ${EE_LIBDIR}
chmod 744 ${EE_LIBDIR}/HELP-WINDOW
chmod 744 ${EE_LIBDIR}/HELP-WINDOW-ADVANCED
chmod 744 ${EE_LIBDIR}/HELP-MANUAL
chmod 744 ${EE_LIBDIR}/easyedit.el
chmod 755 ${EE_LIBDIR}
chmod 755 ${EXEDIR}/easy-edit ${EXEDIR}/ee
install-man:
rm -f ${MAN_DIR}/man1/ee.1
cp easy-edit.man ${MAN_DIR}/man1/easy-edit.1
ln ${MAN_DIR}/man1/easy-edit.1 ${MAN_DIR}/man1/ee.1
chmod 744 ${MAN_DIR}/man1/easy-edit.1 ${MAN_DIR}/man1/ee.1
clean:
rm easy-edit