xref: /freebsd/tools/kerneldoc/Makefile (revision 0b57cec536236d46e3dba9bd041533462f33dbb7)
1# $FreeBSD$
2
3.PATH:	${.CURDIR}/../kern
4
5SRCS+=		kern
6SRCS+=		sys
7MFILES+=	device_if.m
8MFILES+=	bus_if.m
9
10all:	${MFILES:T:S/.m/.h/} ${SRCS}
11	doxygen
12
13LN?=		ln
14AWK?=		awk
15S?=		${.CURDIR}/..
16
17CLEANFILES+=	${SRCS}
18.for dir in ${SRCS}
19${dir}:
20	${LN} -sf ${.CURDIR}/../${dir} .
21.endfor
22
23.for mfile in ${MFILES}
24CLEANFILES+=	${mfile:T:S/.m$/.h/}
25${mfile:T:S/.m$/.h/}: ${mfile}
26	${AWK} -f $S/tools/makeobjops.awk $> -h
27.endfor
28
29clean::
30	rm -f ${CLEANFILES}
31