1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/tools/kerneldoc/Makefile

31 lines
449 B
Makefile
Raw Normal View History

# $FreeBSD$
.PATH: ${.CURDIR}/../kern
SRCS+= kern
SRCS+= sys
MFILES+= device_if.m
MFILES+= bus_if.m
all: ${MFILES:T:S/.m/.h/} ${SRCS}
doxygen
LN?= ln
AWK?= awk
S?= ${.CURDIR}/..
CLEANFILES+= ${SRCS}
.for dir in ${SRCS}
${dir}:
${LN} -sf ${.CURDIR}/../${dir} .
.endfor
.for mfile in ${MFILES}
CLEANFILES+= ${mfile:T:S/.m$/.h/}
${mfile:T:S/.m$/.h/}: ${mfile}
${AWK} -f $S/tools/makeobjops.awk $> -h
.endfor
clean::
rm -f ${CLEANFILES}