mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-27 15:33:55 +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_CPPFLAGS += -D__MAKEDEPEND__
|
||||||
|
|
||||||
DEPEND_MK = $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
|
DEPEND_MK = $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
|
||||||
$(DEPEND_MK): $(PREREQ_DONE)
|
|
||||||
|
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
all:
|
||||||
ifneq ($(MAKECMDGOALS),distclean)
|
|
||||||
|
|
||||||
ifneq ($(DEPEND_MK),)
|
ifneq ($(DEPEND_MK),)
|
||||||
-include $(DEPEND_MK)
|
ifeq ($(MAKECMDGOALS),)
|
||||||
endif
|
-include $(DEPEND_MK)
|
||||||
|
endif
|
||||||
endif
|
ifneq ($(filter all,$(MAKECMDGOALS)),)
|
||||||
|
-include $(DEPEND_MK)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean: depclean my_depclean
|
clean: depclean my_depclean
|
||||||
|
|
||||||
|
$(DEPEND_MK): $(PREREQ_DONE)
|
||||||
my_depclean:
|
my_depclean:
|
||||||
rm -f .*.dep.mk
|
rm -f .*.dep.mk
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue