diff --git a/Application.mk b/Application.mk index e56f316a3..ac6ceabd8 100644 --- a/Application.mk +++ b/Application.mk @@ -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 $@