make: Improvements to a couple of makefiles

- Depend.mk, ldlibpath.mk:
  add multiple inclusion guards
- Flex-bison.mk
  some dependency fiddling
- Py-defs.mk:
  remove *.pyc on clean

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-10-30 12:02:43 +00:00
commit 2594143b1f
4 changed files with 40 additions and 14 deletions

View file

@ -3,6 +3,7 @@ DEPEND_CFLAGS += -D__MAKEDEPEND__
DEPEND_CPPFLAGS += -D__MAKEDEPEND__
DEPEND_MK += $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
ifeq ($(DEPEND_MK_INCLUDED),)
# mandatory target behaviour
all:
@ -26,3 +27,5 @@ my_depclean:
$(DEPEND_MK): $(PREREQ_DONE)
%.o: .%.o.dep.mk
endif # DEPEND_MK_INCLUDED
DEPEND_MK_INCLUDED := true