mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 22:35:41 +00:00
Estimated hours taken: 3 Branches: main, release Fix a problem where different packages in the `extras' distribution were being installed in different directories when you specified INSTALL_PREFIX in the Mmake.params file. Some honoured the INSTALL_PREFIX setting, some appended "/extras", and some ignored it completely. Also, add `clean' and `realclean' targets for the extras directory hierarchy, and fix a few other minor bugs. extras/lazy_evaluation/Mmakefile: Include Mmake.params, which previously wasn't included at all in this file. extras/logged_output/Mmakefile: extras/odbc/Mmakefile: extras/quickcheck/Mmakefile: Append "/extras" to INSTALL_PREFIX, which previously wasn't done at all in these directories. extras/cgi/Mmakefile: extras/complex_numbers/Mmakefile: extras/concurrency/Mmakefile: extras/curs/Mmakefile: extras/curses/Mmakefile: extras/dynamic_linking/Mmakefile: extras/moose/Mmakefile: extras/posix/Mmakefile: Move the line `INSTALL_PREFIX := $(INSTALL_PREFIX/extras)' to before the include of Mmake.params, so as not to override the user's setting (only override the default setting). extras/Mmakefile: extras/concurrency/Mmakefile: Add `clean' and `realclean' targets. extras/posix/Mmakefile: Add MGNUCFLAGS = --no-ansi, since this is needed on some systems. extras/quickcheck/Mmakefile: Add "depend", "all", and "install" targets. Ensure that the "check" target runs the test program. extras/quickcheck/qcheck.m: Set the exit status to non-zero if a test fails. extras/references/Mmakefile: Adjust the setting of LIBGRADES to account for the fact that $(GRADE) is no longer implicitly included in $(LIBGRADES).
31 lines
777 B
Plaintext
31 lines
777 B
Plaintext
#-----------------------------------------------------------------------------#
|
|
# Copyright (C) 2000, 2002-2003 The University of Melbourne.
|
|
# This file may only be copied under the terms of the GNU Library General
|
|
# Public License - see the file COPYING.LIB in the Mercury distribution.
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# GRADE = asm_fast.gc.debug
|
|
# GRADE = asm_fast.gc.prof
|
|
|
|
# MCFLAGS = -O6
|
|
# MCFLAGS = --intermodule-optimization -O6
|
|
|
|
INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
|
|
|
|
-include ../Mmake.params
|
|
|
|
.PHONY: default_target
|
|
default_target: moose
|
|
|
|
.PHONY: install
|
|
install:
|
|
[ -d $(INSTALL_BINDIR) ] || mkdir -p $(INSTALL_BINDIR)
|
|
cp moose $(INSTALL_BINDIR)
|
|
|
|
.PHONY: depend
|
|
depend: moose.depend
|
|
|
|
.PHONY: check
|
|
check:
|
|
true
|