Fix some minor make annoyances.

This commit is contained in:
Zoltan Somogyi
2015-08-26 01:32:52 +10:00
parent e0cdfc2fe2
commit 3a0401afec
3 changed files with 22 additions and 14 deletions

View File

@@ -50,6 +50,9 @@ endif
ifeq ($(origin LINK_STDLIB_ONLY),undefined) ifeq ($(origin LINK_STDLIB_ONLY),undefined)
LINK_STDLIB_ONLY = no LINK_STDLIB_ONLY = no
endif endif
ifeq ($(origin EXTRA_MTAGSFLAGS),undefined)
EXTRA_MTAGSFLAGS =
endif
SCRIPTS_DIR = $(WORKSPACE)/scripts SCRIPTS_DIR = $(WORKSPACE)/scripts
RUNTIME_DIR = $(WORKSPACE)/runtime RUNTIME_DIR = $(WORKSPACE)/runtime

View File

@@ -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) ALL_GRADEFLAGS = $(USUAL_GRADEFLAGS)
@@ -115,9 +115,8 @@ LIB_MCFLAGS = $(patsubst %,--mld %,$(EXTRA_LIB_DIRS)) \
$(patsubst %,--ml %,$(EXTRA_LIBRARIES)) $(patsubst %,--ml %,$(EXTRA_LIBRARIES))
# Flags for use with `mmc --make'. # Flags for use with `mmc --make'.
# Pass the options as a Mercury.options file on stdin rather # Pass the options as a Mercury.options file on stdin rather than on the
# than on the command line. This avoids problems with quoting # command line. This avoids problems with quoting and unwanted word splitting.
# and unwanted word splitting.
ECHO_MERCURY_OPTIONS = { \ ECHO_MERCURY_OPTIONS = { \
echo MCFLAGS += '$(ALL_GRADEFLAGS) $(ALL_MCFLAGS)'; \ echo MCFLAGS += '$(ALL_GRADEFLAGS) $(ALL_MCFLAGS)'; \
echo MCFLAGS += '$(MC_MAKE_FLAGS) $(EXTRA_MC_MAKE_FLAGS)'; \ 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 # 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 # (e.g. in the shell scripts mmc, ml, mmake, etc) that will not be
# updated simply by overriding INSTALL_PREFIX. # updated simply by overriding INSTALL_PREFIX.
ifeq ($(origin DESTDIR),undefined)
DESTDIR =
endif
ifeq ($(DESTDIR),) ifeq ($(DESTDIR),)
# DESTDIR is the empty string, DESTDIR_AND_SLASH must therefore be empty. # 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 # 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 # The command to use to make symlinks, `false' if we shouldn't use symlinks
# symlinks (e.g. because Windows executables don't understand them). # (e.g. because Windows executables don't understand them).
LN_S = @LN_S@ LN_S = @LN_S@
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
@@ -767,3 +770,5 @@ ERR_REDIRECT = > $(*F).err 2>&1
MMAKE_AUTO_INCLUDE_DS = yes MMAKE_AUTO_INCLUDE_DS = yes
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#

View File

@@ -40,7 +40,7 @@
# The test cases that only work in grades that support tabling. # The test cases that only work in grades that support tabling.
# PAR_CONJ_PROGS: # PAR_CONJ_PROGS:
# The test cases that only work in grades that support parallel conjunction. # 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 # The test cases that only work in grades that support compile-time
# garbage collection. Debugging is incompatible with ctgc. # garbage collection. Debugging is incompatible with ctgc.
# RESERVE_TAG_PROGS:: # RESERVE_TAG_PROGS::