Skip to content

Commit

Permalink
Application.mk: fix generated empty Make.dep for SRCS with VPATH
Browse files Browse the repository at this point in the history
apache#250 resulted in generated empty
Make.dep for SRCS with VPATH.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
  • Loading branch information
liuguo09 authored and Ouss4 committed May 21, 2020
1 parent 8d1f2d5 commit b64d353
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ else
context::
endif

.depend: Makefile $(wildcard $(SRCS))
.depend: Makefile $(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
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$^) >Make.dep
$(Q) $(MKDEP) $(ROOTDEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $(filter-out Makefile,$(wildcard $^)) >Make.dep
endif
$(Q) touch $@

Expand Down

0 comments on commit b64d353

Please sign in to comment.