openrc/mk/depend.mk

18 lines
529 B
Makefile
Raw Normal View History

# Generate .depend
2008-01-09 17:14:43 +05:30
# Copyright 2008 Roy Marples <roy@marples.name>
2008-01-09 17:14:43 +05:30
CLEANFILES+= .depend
2008-03-03 18:34:08 +05:30
IGNOREFILES+= .depend
2008-01-09 17:14:43 +05:30
.depend: ${SRCS}
${CC} ${CPPFLAGS} -MM ${SRCS} > .depend
depend: .depend extra_depend
2008-10-20 22:17:56 +05:30
# Nasty hack. depend-.mk is a blank file, depend-gmake.mk has a gmake specific
# command to optionally include .depend.
# Someone should patch gmake to optionally include .depend if it exists.
_INC_DEP= $(shell if ${MAKE} --version | grep -q "^GNU "; then \
echo "gmake"; else echo ""; fi)
include ${MK}/depend-${_INC_DEP}.mk