aboutsummaryrefslogtreecommitdiff
path: root/tools/kerneldoc/subsys
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2006-08-02 15:24:59 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2006-08-02 15:24:59 +0000
commit69f1cb3c91c3377cedc28a9fe37673bda10602cd (patch)
treeedca6b141576f60ef0ce51d7d611d1ab4ee0dc54 /tools/kerneldoc/subsys
parent9b1858ca783ce8a39cdb7bc6574967775d1d52d7 (diff)
downloadsrc-69f1cb3c91c3377cedc28a9fe37673bda10602cd.tar.gz
src-69f1cb3c91c3377cedc28a9fe37673bda10602cd.zip
Fix build when .CURDIR != .OBJDIR.
Noticed by: "Alexander Mogilny" <sg@astral.ntu-kpi.kiev.ua>
Notes
Notes: svn path=/head/; revision=160922
Diffstat (limited to 'tools/kerneldoc/subsys')
-rw-r--r--tools/kerneldoc/subsys/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/kerneldoc/subsys/Makefile b/tools/kerneldoc/subsys/Makefile
index b95080845547..f90109d9378b 100644
--- a/tools/kerneldoc/subsys/Makefile
+++ b/tools/kerneldoc/subsys/Makefile
@@ -8,6 +8,7 @@ PDF_ALL=${_ALL:C/Doxyfile/pdf/g}
TARGET_ARCH?= ${MACHINE_ARCH}
S?=/usr/src/sys
+LOCALBASE?=/usr/local
MFILES+=contrib/dev/ath/freebsd/ah_if.m
MFILES+=dev/acpica/acpi_if.m
@@ -88,6 +89,7 @@ DOXYGEN_LINUX_PATH+= ${S}/${TARGET_ARCH}/linux32
${target}: mfiles ${.OBJDIR}/${target}/${target}.tag
${.OBJDIR}/${target}/${target}.tag:
+ @mkdir -p ${.OBJDIR}/${target}
@cd ${.OBJDIR} && \
env DOXYGEN_INCLUDE_PATH=${.CURDIR} \
DOXYGEN_SRC_PATH=${S} \
@@ -96,6 +98,7 @@ ${.OBJDIR}/${target}/${target}.tag:
DOXYGEN_TARGET_ARCH=${TARGET_ARCH} \
DOXYGEN_LINUX_PATH=${DOXYGEN_LINUX_PATH} \
NOTREVIEWED=${.CURDIR}/notreviewed.dox \
+ PATH=${LOCALBASE}/bin:${PATH} \
doxygen ${.CURDIR}/Doxyfile-${target}
@echo "API docs for ${target} are now available in ${.OBJDIR}/${target}/." | /usr/bin/fmt