Application.mk: fix generated empty Make.dep for SRCS with VPATH
https://github.com/apache/incubator-nuttx-apps/pull/250 resulted in generated empty Make.dep for SRCS with VPATH. Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
parent
8d1f2d52da
commit
b64d3533ba
@ -220,11 +220,11 @@ else
|
|||||||
context::
|
context::
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.depend: Makefile $(wildcard $(SRCS))
|
.depend: Makefile $(SRCS)
|
||||||
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
|
ifeq ($(filter %$(CXXEXT),$(SRCS)),)
|
||||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$^) >Make.dep
|
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(filter-out Makefile,$(wildcard $^)) >Make.dep
|
||||||
else
|
else
|
||||||
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >Make.dep
|
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$(wildcard $^)) >Make.dep
|
||||||
endif
|
endif
|
||||||
$(Q) touch $@
|
$(Q) touch $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user