# Generated automatically from Makefile.in by configure.
# DIST: This is the distribution Makefile for ECL.  configure can
# DIST: make most of the changes to this file you might want, so try
# DIST: that first.

# make all	to compile and build Emacs.
# make install	to install it.
# make TAGS	to update tags tables.
#
# make clean  or  make mostlyclean
#      Delete all files from the current directory that are normally
#      created by building the program.	 Don't delete the files that
#      record the configuration.  Also preserve files that could be made
#      by building, but normally aren't because the distribution comes
#      with them.
#
#      Delete `.dvi' files here if they are not part of the distribution.
# 
# make distclean
#      Delete all files from the current directory that are created by
#      configuring or building the program.  If you have unpacked the
#      source and built the program without creating any other files,
#      `make distclean' should leave only the files that were in the
#      distribution.
# 
# make realclean
#      Delete everything from the current directory that can be
#      reconstructed with this Makefile.  This typically includes
#      everything deleted by distclean.

SHELL = /bin/sh
MAKE = make  # BSD doesn't have it as a default.

# ==================== Things `configure' Might Edit ====================

CC=gcc
CPP=gcc -E
LN_S=ln -s
CFLAGS=-W  -I../h -I$(HDIR)

#   This should be the name of the configuration we're building ECL
#   for, like `sgi' or `sun4'.
MACHINE=sun4

#   Where to build the program
BUILDIR=sun4

# ==================== Where To Install Things ====================

#   The default location for installation.  Everything is placed in
#   subdirectories of this directory.  The default values for many of
#   the variables below are expressed in terms of this one, so you may
#   not need to change them.  This defaults to /usr/local.
prefix=/usr/local

#   Like `prefix', but used for architecture-specific files.
exec_prefix=${prefix}

#   Where to install ECL
bindir=${exec_prefix}/bin

#  Where to install ECL's man page, and what extension they should have.
mandir=${prefix}/man/man1
manext=.1

#  Where to install and expect the info files describing ECL.
infodir=${prefix}/info

#  Where to find the source code.
#  This is set by the configure script's `--srcdir' option.
srcdir=/home/dipartimento/attardi/lisp/ecl/src

#  Tell make where to find source files; this is needed for the makefiles.
VPATH=/home/dipartimento/attardi/lisp/ecl/src

# ==================== Utility Programs for the Build ====================

#  Allow the user to specify the install program.
INSTALL = /usr/bin//install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

# ============================= Targets ==============================

#  Subdirectories to make recursively.

all:	${BUILDIR}

.RECURSIVE: ${BUILDIR}

${BUILDIR}: ${BUILDIR}/Makefile
	cd $@; $(MAKE) all $(MFLAGS) \
		CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'

Makefile: Makefile.in ${BUILDIR}/config.status
	${BUILDIR}/config.status

# ==================== Installation ====================

install:
	(cd ${BUILDIR}; make install)
	$(INSTALL_PROGRAM) ${BUILDIR}/ecl.csh ${bindir}/ecl
	$(INSTALL_DATA) src/etc/ecl.1 ${mandir}
	-rm -f ${infodir}/ecl.info*
	cd ${srcdir}/doc; for f in ecl.info*; \
	   do $(INSTALL_DATA) $$f ${infodir}/$$f; done
	-chmod a-wx ${infodir}/ecl.info*

#   Delete all the installed files that the `install' target would
#   create (but not the noninstalled files such as `make all' would
#   create).
#  
uninstall:
	rm -f ${infodir}/ecl*
	rm -f ${mandir}/ecl.1
	rm -f ${bindir}/ecl


# ==================== Cleaning up and miscellanea ====================

#   `clean'
#        Delete all files from the current directory that are normally
#        created by building the program.  Don't delete the files that
#        record the configuration.  Also preserve files that could be made
#        by building, but normally aren't because the distribution comes
#        with them.
#   
#        Delete `.dvi' files here if they are not part of the distribution.
clean:
	(cd ${BUILDIR};      $(MAKE) $(MFLAGS) clean)

#   `distclean'
#        Delete all files from the current directory that are created by
#        configuring or building the program.  If you have unpacked the
#        source and built the program without creating any other files,
#        `make distclean' should leave only the files that were in the
#        distribution.

distclean: clean
	rm -fr ${BUILDIR}/config.status
	rm -f Makefile

#   `realclean'
#        Delete everything from the current directory that can be
#        reconstructed with this Makefile.
#        One exception, however: `make realclean' should not delete
#        `configure' even if `configure' can be remade using a rule in the
#        Makefile.  More generally, `make realclean' should not delete
#        anything that needs to exist in order to run `configure' and then
#        begin to build the program.
realclean: distclean

TAGS tags:
	(cd ${srcdir}/src; \
	 etags c/*.[cd] h/*.h)

check:
	@echo "We don't have any tests for ECL yet."

dist:
	cd dist; make-dist

info:
	(cd ${srcdir}/doc; $(MAKE) $(MFLAGS) info)
dvi:
	(cd ${srcdir}/doc; $(MAKE) $(MFLAGS) dvi)
