mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 00:40:33 -05:00
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
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
DOC_PREFIX?= ${RELN_ROOT}/../../../doc
|
|
|
|
# Find the RELNOTESng document catalogs
|
|
EXTRA_CATALOGS+= ${RELN_ROOT}/${LANGCODE}/share/sgml/catalog
|
|
EXTRA_CATALOGS+= ${RELN_ROOT}/share/sgml/catalog
|
|
|
|
# Use the appropriate architecture-dependent RELNOTESng stylesheet
|
|
DSLHTML?= ${RELN_ROOT}/share/sgml/default.dsl
|
|
DSLPRINT?= ${RELN_ROOT}/share/sgml/default.dsl
|
|
|
|
#
|
|
# Tweakable Makefile variables
|
|
#
|
|
# INCLUDE_HISTORIC Used by relnotes document only. When set,
|
|
# causes all release notes entries to be printed,
|
|
# even those marked as "historic". If not set
|
|
# (the default), only print "non-historic"
|
|
# release note entries. To designate a release
|
|
# note entry as "historic", add a role="historic"
|
|
# attribute to the applicable element(s).
|
|
#
|
|
.if defined(INCLUDE_HISTORIC)
|
|
JADEFLAGS+= -iinclude.historic
|
|
.else
|
|
JADEFLAGS+= -ino.include.historic
|
|
.endif
|
|
|
|
#
|
|
# Automatic device list generation:
|
|
#
|
|
.if exists(${RELN_ROOT}/../man4)
|
|
MAN4DIR?= ${RELN_ROOT}/../man4
|
|
.elif exists(${RELN_ROOT}/../../man4)
|
|
MAN4DIR?= ${RELN_ROOT}/../../man4
|
|
.else
|
|
MAN4DIR?= ${RELN_ROOT}/../../share/man/man4
|
|
.endif
|
|
MAN4PAGES?= ${MAN4DIR}/*.4 ${MAN4DIR}/man4.*/*.4
|
|
ARCHLIST?= ${RELN_ROOT}/share/misc/dev.archlist.txt
|
|
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 MAN2HWNOTES_FLAGS=${MAN2HWNOTES_FLAGS} dev-auto.sgml
|