mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
depend.mk: Add convenience target dep
- Add convenience target dep - Code beautification
This commit is contained in:
parent
95bb24541f
commit
5358a6ece7
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue