mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 04:44:39 +00:00
Fix some minor make annoyances.
This commit is contained in:
@@ -50,6 +50,9 @@ endif
|
||||
ifeq ($(origin LINK_STDLIB_ONLY),undefined)
|
||||
LINK_STDLIB_ONLY = no
|
||||
endif
|
||||
ifeq ($(origin EXTRA_MTAGSFLAGS),undefined)
|
||||
EXTRA_MTAGSFLAGS =
|
||||
endif
|
||||
|
||||
SCRIPTS_DIR = $(WORKSPACE)/scripts
|
||||
RUNTIME_DIR = $(WORKSPACE)/runtime
|
||||
|
||||
@@ -99,7 +99,7 @@ endif
|
||||
#-----------------------------------------------------------------------------#
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Stuff which is not specific to any back-end
|
||||
# Stuff which is not specific to any back-end.
|
||||
#
|
||||
|
||||
ALL_GRADEFLAGS = $(USUAL_GRADEFLAGS)
|
||||
@@ -115,9 +115,8 @@ LIB_MCFLAGS = $(patsubst %,--mld %,$(EXTRA_LIB_DIRS)) \
|
||||
$(patsubst %,--ml %,$(EXTRA_LIBRARIES))
|
||||
|
||||
# Flags for use with `mmc --make'.
|
||||
# Pass the options as a Mercury.options file on stdin rather
|
||||
# than on the command line. This avoids problems with quoting
|
||||
# and unwanted word splitting.
|
||||
# Pass the options as a Mercury.options file on stdin rather than on the
|
||||
# command line. This avoids problems with quoting and unwanted word splitting.
|
||||
ECHO_MERCURY_OPTIONS = { \
|
||||
echo MCFLAGS += '$(ALL_GRADEFLAGS) $(ALL_MCFLAGS)'; \
|
||||
echo MCFLAGS += '$(MC_MAKE_FLAGS) $(EXTRA_MC_MAKE_FLAGS)'; \
|
||||
@@ -189,7 +188,7 @@ EXTRA_MCSFLAGS = $(EXTRA_MCFLAGS)
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Stuff which is specific to the C back-ends
|
||||
# Stuff which is specific to the C back-ends.
|
||||
#
|
||||
|
||||
# FIX_PATH_FOR_<foo> should be set to a script which converts path names
|
||||
@@ -671,6 +670,10 @@ INSTALL_MKDIR = mkdir -p
|
||||
# (e.g. in the shell scripts mmc, ml, mmake, etc) that will not be
|
||||
# updated simply by overriding INSTALL_PREFIX.
|
||||
|
||||
ifeq ($(origin DESTDIR),undefined)
|
||||
DESTDIR =
|
||||
endif
|
||||
|
||||
ifeq ($(DESTDIR),)
|
||||
# DESTDIR is the empty string, DESTDIR_AND_SLASH must therefore be empty.
|
||||
# Otherwise the slash can change a relative path into an absolute one; or
|
||||
@@ -733,8 +736,8 @@ LIBGRADES = @LIBGRADES@
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
# The command to use to make symlinks, `false' if we shouldn't use
|
||||
# symlinks (e.g. because Windows executables don't understand them).
|
||||
# The command to use to make symlinks, `false' if we shouldn't use symlinks
|
||||
# (e.g. because Windows executables don't understand them).
|
||||
LN_S = @LN_S@
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
@@ -767,3 +770,5 @@ ERR_REDIRECT = > $(*F).err 2>&1
|
||||
MMAKE_AUTO_INCLUDE_DS = yes
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
# vim: ts=8 sw=8 noexpandtab ft=make
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
# The test cases that only work in grades that support tabling.
|
||||
# PAR_CONJ_PROGS:
|
||||
# The test cases that only work in grades that support parallel conjunction.
|
||||
# PAR_CONJ_PROGS:
|
||||
# CTGC_PROGS:
|
||||
# The test cases that only work in grades that support compile-time
|
||||
# garbage collection. Debugging is incompatible with ctgc.
|
||||
# RESERVE_TAG_PROGS::
|
||||
|
||||
Reference in New Issue
Block a user