openrc/mk/depend.mk

12 lines
266 B
Makefile
Raw Normal View History

# This only works for make implementations that always include a .depend if
# it exists. Only GNU make does not do this.
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
.depend: ${SRCS}
${CC} ${CFLAGS} -MM ${SRCS} > .depend
2008-01-09 17:14:43 +05:30
depend: .depend