depend.mk: Add convenience target dep

- Add convenience target dep
  - Code beautification
This commit is contained in:
Jan Lindemann 2009-06-06 14:29:32 +00:00 committed by Jan Lindemann
commit 5358a6ece7

View file

@ -1,8 +1,9 @@
# variables
DEPEND_CFLAGS += -D__MAKEDEPEND__
DEPEND_CPPFLAGS += -D__MAKEDEPEND__
DEPEND_MK = $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
DEPEND_MK = $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
# mandatory target behaviour
all:
ifneq ($(DEPEND_MK),)
@ -16,9 +17,12 @@ endif
clean: depclean my_depclean
$(DEPEND_MK): $(PREREQ_DONE)
# convenience targets
dep: $(DEPEND_MK)
my_depclean:
rm -f .*.dep.mk
# rules
$(DEPEND_MK): $(PREREQ_DONE)
%.o: .%.o.dep.mk