You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/25 14:13:39 UTC
[incubator-nuttx-apps] branch master updated: Application.mk:
update .depend dependency for SRCS with VPATH
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 33c794a Application.mk: update .depend dependency for SRCS with VPATH
33c794a is described below
commit 33c794ad606563c8534f60134de20e0466101961
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Mon May 25 17:50:26 2020 +0800
Application.mk: update .depend dependency for SRCS with VPATH
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
Application.mk | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Application.mk b/Application.mk
index ac6ceab..049c9d8 100644
--- a/Application.mk
+++ b/Application.mk
@@ -220,11 +220,11 @@ else
context::
endif
-.depend: Makefile $(SRCS)
+.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH)))))
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
- $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(wildcard $^)) >Make.dep
+ $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >Make.dep
else
- $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$(wildcard $^)) >Make.dep
+ $(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >Make.dep
endif
$(Q) touch $@