Merge branch '2020-04-25-master-imports'
[oweals/u-boot.git] / Makefile
index b7fa6d89ce29585ada4f2ffaedd9eac675f5aea4..b8a4b5058a00f92d061e9823f6842a40273dbb26 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2241,8 +2241,7 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN   $(wildcard $(rm-files))
 
 # read all saved command lines
 
-targets := $(wildcard $(sort $(targets)))
-cmd_files := $(wildcard .*.cmd $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
+cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd))
 
 ifneq ($(cmd_files),)
   $(cmd_files): ;      # Do not try to update included dependency files