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

CLEANFILES+=	.depend
IGNOREFILES+=	.depend

.depend: ${SRCS}
	${CC} ${CFLAGS} -MM ${SRCS} > .depend

depend: .depend