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