summaryrefslogtreecommitdiffstats
path: root/release/doc/share/mk/doc.relnotes.mk
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2007-02-16 02:10:12 +0000
committerbmah <bmah@FreeBSD.org>2007-02-16 02:10:12 +0000
commit1d11921f2976256828f5a0d56b503097523039ef (patch)
treee01b734c47dfd4d6779f06e7ec4559e2faaa651d /release/doc/share/mk/doc.relnotes.mk
parent13cb63c7a4ac75970e8b578e214431657da53e0a (diff)
downloadFreeBSD-src-1d11921f2976256828f5a0d56b503097523039ef.zip
FreeBSD-src-1d11921f2976256828f5a0d56b503097523039ef.tar.gz
Add support for auto-generating hardware notes entries in a
manner consistent with the new MI-style hardware notes document. man2hwnotes.pl now defaults to generating entities for the MI-style hardware notes (i.e. hardware/article.sgml). A new -c option causes it to generate entities for the older MD-style hardware notes (i.e. hardware/common/dev.sgml). The Makefile infrastructure supplies the -c option to man2hwnotes.pl now unless the HWNOTES_MI Makefile variable is defined, so compatiblity is preserved for hardware notes translations that aren't converted to the new organization yet. As translations convert, they should define HWNOTES_MI in their hardware/Makefile. When all the relevant translations catch up, the compatibility goop in share/mk/doc.relnotes.mk and share/sgml/Makefile can be removed. Thanks go to simon@ for help with the backwards compatiblity mechanism. Tested with: en_US.ISO8859-1, zh_CN.GB2312
Diffstat (limited to 'release/doc/share/mk/doc.relnotes.mk')
-rw-r--r--release/doc/share/mk/doc.relnotes.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/doc/share/mk/doc.relnotes.mk b/release/doc/share/mk/doc.relnotes.mk
index 2fe30d7..95d1e49 100644
--- a/release/doc/share/mk/doc.relnotes.mk
+++ b/release/doc/share/mk/doc.relnotes.mk
@@ -43,9 +43,14 @@ DEV-AUTODIR= ${RELN_ROOT:S/${.CURDIR}/${.OBJDIR}/}/share/sgml
CLEANFILES+= ${DEV-AUTODIR}/dev-auto.sgml ${DEV-AUTODIR}/catalog-auto
MAN2HWNOTES_CMD=${RELN_ROOT}/share/misc/man2hwnotes.pl
+.if defined(HWNOTES_MI)
+MAN2HWNOTES_FLAGS=
+.else
+MAN2HWNOTES_FLAGS= -c
+.endif
# Dependency that the article makefiles can use to pull in
# dev-auto.sgml.
${DEV-AUTODIR}/catalog-auto ${DEV-AUTODIR}/dev-auto.sgml: ${MAN4PAGES} \
${ARCHLIST} ${MAN2HWNOTES_CMD}
- cd ${RELN_ROOT}/share/sgml && make dev-auto.sgml
+ cd ${RELN_ROOT}/share/sgml && make MAN2HWNOTES_FLAGS=${MAN2HWNOTES_FLAGS} dev-auto.sgml
OpenPOWER on IntegriCloud