mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
depend.mk: Include $(DEPEND_MK) only for targets all and empty
This commit is contained in:
parent
8a9cfed9a7
commit
6a6692bab5
1 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue