aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-11-01 17:45:37 +0100
committerLukas Larsson <[email protected]>2013-11-01 17:49:23 +0100
commit4685ec726844b3b92d90c13bae0f4c96e86e3665 (patch)
tree31df8288b7481083613901472b21c131a39702f8
parent98232ea62b2a971c802ef38488eaab2a396fefef (diff)
downloadotp-4685ec726844b3b92d90c13bae0f4c96e86e3665.tar.gz
otp-4685ec726844b3b92d90c13bae0f4c96e86e3665.tar.bz2
otp-4685ec726844b3b92d90c13bae0f4c96e86e3665.zip
erts: Fix resolve of generated files for depend
-rw-r--r--erts/emulator/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in
index 68bb9c0bfb..574909ac7c 100644
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -997,7 +997,9 @@ BEAM_SRC=$(wildcard beam/*.c)
DRV_COMMON_SRC=$(wildcard drivers/common/*.c)
DRV_OSTYPE_SRC=$(wildcard drivers/$(ERLANG_OSTYPE)/*.c)
ALL_SYS_SRC=$(wildcard sys/$(ERLANG_OSTYPE)/*.c) $(wildcard sys/common/*.c)
-TARGET_SRC=$(wildcard $(TARGET)/*.c) $(wildcard $(TTF_DIR)/*.c)
+# We use $(shell ls) here instead of wildcard as $(wildcard ) resolved at
+# loadtime of the makefile and at that time these files are not generated yet.
+TARGET_SRC=$(shell ls $(TARGET)/*.c) $(shell ls $(TTF_DIR)/*.c)
# I do not want the -MG flag on windows, it does not work properly for a
# windows build.