Files
mercury/bindist/bindist.Makefile.in
Fergus Henderson 4acc88239f Remove support for NU-Prolog and SICStus Prolog.
Estimated hours taken: 0.25

Remove support for NU-Prolog and SICStus Prolog.

bindist/Mmakefile:
bindist/bindist.Makefile.in:
	Delete the rules for building NU-Prolog and SICStus Prolog stuff.
1999-03-16 06:11:36 +00:00

124 lines
4.2 KiB
Plaintext

#---------------------------------------------------------------------------#
# Copyright (C) 1996-1999 The University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#---------------------------------------------------------------------------#
#
# @configure_input@
#
SHELL= /bin/sh
INSTALL_PREFIX = @PREFIX@
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
INSTALL_LIBDIR = $(INSTALL_PREFIX)/lib/mercury
INSTALL_INFODIR = $(INSTALL_PREFIX)/info
INSTALL_MAN_DIR = $(INSTALL_PREFIX)/man
INSTALL_ELISP_DIR = $(INSTALL_PREFIX)/lib/mercury/elisp
INSTALL_SCRIPTS = scripts/c2init scripts/mmc \
scripts/mercury_update_interface scripts/mgnuc \
scripts/ml scripts/mmake scripts/mprof \
scripts/mdb scripts/mkfifo_using_mknod
EMACS_SCRIPTS = scripts/gud.el
INSTALL_MMAKE_EXTRAS = scripts/Mmake.rules scripts/Mmake.vars
INSTALL_MDB_EXTRAS = scripts/mdbrc
LIB_PARTS = bin doc html inc ints lib mdb/mdb_doc modules
UTILS = util/mdemangle util/mkinit util/mtags \
util/mprof_merge_runs
#-----------------------------------------------------------------------------#
all:
# since this is a binary distribution, we don't need to
# make anything
@echo "-- The binary distribution does not need building."
@echo "-- Use \`make install' to install"
.PHONY: install
install: install_lib install_info install_man install_scripts install_mmake \
install_mdb install_util
@echo
@echo "-- Don't forget to add $(INSTALL_BINDIR) to your PATH,"
@echo "-- $(INSTALL_MAN_DIR) to your MANPATH,"
@echo "-- and $(INSTALL_INFODIR) to your INFOPATH,"
@echo "-- and to add the following lines to the \`.emacs' file"
@echo "-- in your home directory:"
@echo " (setq load-path (cons (expand-file-name "
@echo " \"$(INSTALL_ELISP_DIR)\") load-path))"
@echo " (autoload 'mdb \"gud\" \"Invoke the Mercury debugger\" t)"
.PHONY: install_lib
install_lib:
@echo "-- Installing lib in $(INSTALL_LIBDIR)..."
test -d $(INSTALL_LIBDIR) || mkdir -p $(INSTALL_LIBDIR)
# (XXX don't use redirection or pipes, because on gnu-win32
# stdout defaults to text mode, which breaks tar and gzip)
gzip --decompress lib.tar.gz
LIB_TAR_FILE=`pwd`/lib.tar && cd $(INSTALL_LIBDIR) && \
tar -xf $$LIB_TAR_FILE $(LIB_PARTS)
gzip lib.tar # tidy up
@echo "-- Done."
.PHONY: install_info
install_info:
@echo "-- Installing info documentation in $(INSTALL_INFODIR)..."
test -d $(INSTALL_INFODIR) || mkdir -p $(INSTALL_INFODIR)
# (XXX don't use redirection or pipes, because on gnu-win32
# stdout defaults to text mode, which breaks tar and gzip)
gzip --decompress info.tar.gz
INFO_TAR_FILE=`pwd`/info.tar && cd $(INSTALL_INFODIR)/.. && \
tar -xf $$INFO_TAR_FILE
gzip info.tar # tidy up
@echo "-- Done."
.PHONY: install_man
install_man:
@echo "-- Installing man pages in $(INSTALL_MAN_DIR)..."
test -d $(INSTALL_MAN_DIR) || mkdir -p $(INSTALL_MAN_DIR)
# (XXX don't use redirection or pipes, because on gnu-win32
# stdout defaults to text mode, which breaks tar and gzip)
gzip --decompress man.tar.gz
MAN_TAR_FILE=`pwd`/man.tar && cd $(INSTALL_MAN_DIR)/.. && \
tar -xf $$MAN_TAR_FILE
gzip man.tar # tidy up
@echo "-- Done."
.PHONY: install_scripts
install_scripts:
@echo "-- Installing scripts in $(INSTALL_BINDIR)"
test -d $(INSTALL_BINDIR) || mkdir -p $(INSTALL_BINDIR)
cp $(INSTALL_SCRIPTS) $(INSTALL_BINDIR)
for file in $(INSTALL_SCRIPTS); do \
base=`basename $$file`; \
chmod +w $(INSTALL_BINDIR)/$$base ;\
done
@echo "-- Done."
install_emacs_scripts:
@echo "-- Installing Emacs lisp scripts in $(INSTALL_ELISP_DIR)"
test -d $(INSTALL_ELISP_DIR) || mkdir -p $(INSTALL_ELISP_DIR)
cp $(INSTALL_EMACS_SCRIPTS) $(INSTALL_ELISP_DIR)
.PHONY: install_mmake
install_mmake:
test -d $(INSTALL_LIBDIR)/mmake || mkdir -p $(INSTALL_LIBDIR)/mmake
cp $(INSTALL_MMAKE_EXTRAS) $(INSTALL_LIBDIR)/mmake
.PHONY: install_mdb
install_mdb:
test -d $(INSTALL_LIBDIR)/mdb || mkdir -p $(INSTALL_LIBDIR)/mdb
cp $(INSTALL_MDB_EXTRAS) $(INSTALL_LIBDIR)/mdb
.PHONY: install_util
install_util:
test -d $(INSTALL_BINDIR) || mkdir -p $(INSTALL_BINDIR)
cp $(UTILS) $(INSTALL_BINDIR)
#-----------------------------------------------------------------------------#