openrc/mk/depend.mk
2008-06-19 23:12:00 +00:00

14 lines
354 B
Makefile

# This only works for make implementations that always include a .depend if
# it exists. Only GNU make does not do this.
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
CLEANFILES+= .depend
IGNOREFILES+= .depend
.depend: ${SRCS}
${CC} ${CPPFLAGS} -MM ${SRCS} > .depend
depend: .depend