Avoid a warning from make on Windows.

scripts/Mmake.vars.in:
    The cygpath utility prints a warning if it is invoked with an empty
    argument.
This commit is contained in:
Julien Fischer
2023-04-07 19:14:34 +10:00
parent 69af254126
commit 8a3be4eaea

View File

@@ -50,7 +50,13 @@ endif
# occurrence of $(patsubst ...), since GNU Make does not respect quotes.
UNIX_MERCURY_EXTRA_INT_DIRS = $(foreach dir, $(MERCURY_EXTRA_INT_DIRS),\
$(shell @CYGPATHU@ "$(dir)"))
UNIX_MERC_INT_DIR = $(shell @CYGPATHU@ "$(MERC_INT_DIR)")
ifdef MERC_INT_DIR
UNIX_MERC_INT_DIR = $(shell @CYGPATHU@ "$(MERC_INT_DIR)")
else
UNIX_MERC_INT_DIR =
endif
UNIX_MERCURY_EXTRA_INIT_DIRS = $(foreach dir, $(MERCURY_EXTRA_INIT_DIRS),\
$(shell @CYGPATHU@ "$(dir)"))