mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
- 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>
31 lines
585 B
Makefile
31 lines
585 B
Makefile
# variables
|
|
DEPEND_CFLAGS += -D__MAKEDEPEND__
|
|
DEPEND_CPPFLAGS += -D__MAKEDEPEND__
|
|
DEPEND_MK += $(addprefix .,$(addsuffix .dep.mk, $(OBJ)))
|
|
|
|
ifeq ($(DEPEND_MK_INCLUDED),)
|
|
# mandatory target behaviour
|
|
all:
|
|
|
|
ifneq ($(DEPEND_MK),)
|
|
ifeq ($(MAKECMDGOALS),)
|
|
-include $(DEPEND_MK)
|
|
endif
|
|
ifneq ($(filter all,$(MAKECMDGOALS)),)
|
|
-include $(DEPEND_MK)
|
|
endif
|
|
endif
|
|
|
|
clean: depclean my_depclean
|
|
|
|
# convenience targets
|
|
dep: $(DEPEND_MK)
|
|
my_depclean:
|
|
$(RM) -f .*.dep.mk
|
|
|
|
# rules
|
|
$(DEPEND_MK): $(PREREQ_DONE)
|
|
%.o: .%.o.dep.mk
|
|
|
|
endif # DEPEND_MK_INCLUDED
|
|
DEPEND_MK_INCLUDED := true
|