summaryrefslogtreecommitdiff
path: root/builds/toplevel.mk
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2021-02-16 14:29:45 +0100
committerWerner Lemberg <wl@gnu.org>2021-02-16 14:29:45 +0100
commitdfa7cca5f3b4f494aae785891ab4a42e66db77ef (patch)
treeb009913e9c11055a1243c2a540b5e6f014d88222 /builds/toplevel.mk
parent92bd99bd25e93baeff742444dee129629f70e5c8 (diff)
downloadfreetype2-dfa7cca5f3b4f494aae785891ab4a42e66db77ef.tar.gz
* builds/toplevel.mk: Avoid side effects of `shell`.
We use a dummy variable to catch its output. Otherwise the `make` program is going to interpret the return value of `shell`; this can cause obscure warning or error messages or even be harmful.
Diffstat (limited to 'builds/toplevel.mk')
-rw-r--r--builds/toplevel.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/builds/toplevel.mk b/builds/toplevel.mk
index 08170bbef..e9cb62d35 100644
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -118,17 +118,17 @@ ifdef check_platform
ifeq ($(wildcard src/dlg/dlg.*),)
ifeq ($(wildcard subprojects/dlg/*),)
$(info Checking out submodule in `subprojects/dlg')
- $(shell git submodule init)
- $(shell git submodule update)
+ dummy := $(shell git submodule init)
+ dummy := $(shell git submodule update)
endif
$(info Copying files from `subprojects/dlg' to `src/dlg' and `include/dlg')
- $(shell mkdir $(subst /,$(SEP),include/dlg) $(NO_OUTPUT))
- $(shell $(COPY) \
+ dummy := $(shell mkdir $(subst /,$(SEP),include/dlg) $(NO_OUTPUT))
+ dummy := $(shell $(COPY) \
$(subst /,$(SEP),subprojects/dlg/include/dlg/output.h include/dlg))
- $(shell $(COPY) \
+ dummy := $(shell $(COPY) \
$(subst /,$(SEP),subprojects/dlg/include/dlg/dlg.h include/dlg))
- $(shell $(COPY) \
+ dummy := $(shell $(COPY) \
$(subst /,$(SEP),subprojects/dlg/src/dlg/dlg.c src/dlg))
endif