depend.mk: Include $(DEPEND_MK) only for targets all and empty

This commit is contained in:
Jan Lindemann 2007-09-10 14:49:19 +00:00 committed by Jan Lindemann
commit 6a6692bab5

View file

@ -2,20 +2,21 @@ DEPEND_CFLAGS += -D__MAKEDEPEND__
DEPEND_CPPFLAGS += -D__MAKEDEPEND__
DEPEND_MK = $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
$(DEPEND_MK): $(PREREQ_DONE)
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
all:
ifneq ($(DEPEND_MK),)
-include $(DEPEND_MK)
endif
endif
ifeq ($(MAKECMDGOALS),)
-include $(DEPEND_MK)
endif
ifneq ($(filter all,$(MAKECMDGOALS)),)
-include $(DEPEND_MK)
endif
endif
clean: depclean my_depclean
$(DEPEND_MK): $(PREREQ_DONE)
my_depclean:
rm -f .*.dep.mk