diff options
author | dfr <dfr@FreeBSD.org> | 2004-07-11 16:13:57 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2004-07-11 16:13:57 +0000 |
commit | 4502cba2fdc8a85276b21a8fc2ccbcbfcb529c4e (patch) | |
tree | 8c3cf39ee00082a580a54f4ee457cfdb4e2ea0bb /sys/doc/Makefile | |
parent | 6c66c4291a6c529dc538151fb896c0295231e2ef (diff) | |
download | FreeBSD-src-4502cba2fdc8a85276b21a8fc2ccbcbfcb529c4e.zip FreeBSD-src-4502cba2fdc8a85276b21a8fc2ccbcbfcb529c4e.tar.gz |
Experimental support for using doxygen to generate kernel documentation.
Diffstat (limited to 'sys/doc/Makefile')
-rw-r--r-- | sys/doc/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/doc/Makefile b/sys/doc/Makefile new file mode 100644 index 0000000..ec665a7 --- /dev/null +++ b/sys/doc/Makefile @@ -0,0 +1,30 @@ +# $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} |