aboutsummaryrefslogtreecommitdiff
path: root/mk/depend.mk
blob: bec382e52034b8cf5dff5827d98fcd464fd4a90a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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