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