1d11921f29
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
16 lines
452 B
Makefile
16 lines
452 B
Makefile
# $FreeBSD$
|
|
|
|
RELN_ROOT?= ${.CURDIR}/../..
|
|
|
|
.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
|
|
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
|
|
|
|
dev-auto.sgml: ${MAN4PAGES} ${ARCHLIST} ${MAN2HWNOTES_CMD} catalog-auto
|
|
${PERL} ${MAN2HWNOTES_CMD} ${MAN2HWNOTES_FLAGS} -a ${ARCHLIST} -o ${.TARGET} ${MAN4PAGES}
|
|
|
|
catalog-auto:
|
|
${ECHO_CMD} 'PUBLIC "-//FreeBSD//ENTITIES Auto Generated Device Lists//EN"' \
|
|
'"dev-auto.sgml"' > ${.TARGET}
|
|
|
|
all: dev-auto.sgml
|