3 DOC_PREFIX?= ${RELN_ROOT}/../../../doc
5 # Find the RELNOTESng document catalogs
6 EXTRA_CATALOGS+= ${RELN_ROOT}/${LANGCODE}/share/sgml/catalog
7 EXTRA_CATALOGS+= ${RELN_ROOT}/share/sgml/catalog
9 # Use the appropriate architecture-dependent RELNOTESng stylesheet
10 DSLHTML?= ${RELN_ROOT}/share/sgml/default.dsl
11 DSLPRINT?= ${RELN_ROOT}/share/sgml/default.dsl
14 # Tweakable Makefile variables
16 # INCLUDE_HISTORIC Used by relnotes document only. When set,
17 # causes all release notes entries to be printed,
18 # even those marked as "historic". If not set
19 # (the default), only print "non-historic"
20 # release note entries. To designate a release
21 # note entry as "historic", add a role="historic"
22 # attribute to the applicable element(s).
24 .if defined(INCLUDE_HISTORIC)
25 JADEFLAGS+= -iinclude.historic
27 JADEFLAGS+= -ino.include.historic
31 # Automatic device list generation:
33 .if exists(${RELN_ROOT}/../man4)
34 MAN4DIR?= ${RELN_ROOT}/../man4
35 .elif exists(${RELN_ROOT}/../../man4)
36 MAN4DIR?= ${RELN_ROOT}/../../man4
38 MAN4DIR?= ${RELN_ROOT}/../../share/man/man4
40 MAN4PAGES?= ${MAN4DIR}/*.4 ${MAN4DIR}/man4.*/*.4
41 ARCHLIST?= ${RELN_ROOT}/share/misc/dev.archlist.txt
42 DEV-AUTODIR= ${RELN_ROOT:S/${.CURDIR}/${.OBJDIR}/}/share/sgml
43 CLEANFILES+= ${DEV-AUTODIR}/dev-auto.sgml ${DEV-AUTODIR}/catalog-auto
45 MAN2HWNOTES_CMD=${RELN_ROOT}/share/misc/man2hwnotes.pl
46 .if defined(HWNOTES_MI)
52 # Dependency that the article makefiles can use to pull in
54 ${DEV-AUTODIR}/catalog-auto ${DEV-AUTODIR}/dev-auto.sgml: ${MAN4PAGES} \
55 ${ARCHLIST} ${MAN2HWNOTES_CMD}
56 cd ${RELN_ROOT}/share/sgml && make MAN2HWNOTES_FLAGS=${MAN2HWNOTES_FLAGS} dev-auto.sgml