doc.relnotes.mk revision 166778
176140Sdd# $FreeBSD: head/release/doc/share/mk/doc.relnotes.mk 166778 2007-02-16 02:10:12Z bmah $ 276140Sdd 376140SddDOC_PREFIX?= ${RELN_ROOT}/../../../doc 476140Sdd 579462Sbmah# Find the RELNOTESng document catalogs 679809SbmahEXTRA_CATALOGS+= ${RELN_ROOT}/${LANGCODE}/share/sgml/catalog 776222SbmahEXTRA_CATALOGS+= ${RELN_ROOT}/share/sgml/catalog 876222Sbmah 976222Sbmah# Use the appropriate architecture-dependent RELNOTESng stylesheet 1079462SbmahDSLHTML?= ${RELN_ROOT}/share/sgml/default.dsl 1179462SbmahDSLPRINT?= ${RELN_ROOT}/share/sgml/default.dsl 1298515Sbmah 1398515Sbmah# 1498515Sbmah# Tweakable Makefile variables 1598515Sbmah# 1698515Sbmah# INCLUDE_HISTORIC Used by relnotes document only. When set, 1798515Sbmah# causes all release notes entries to be printed, 1898515Sbmah# even those marked as "historic". If not set 1998515Sbmah# (the default), only print "non-historic" 2098515Sbmah# release note entries. To designate a release 2198515Sbmah# note entry as "historic", add a role="historic" 2298515Sbmah# attribute to the applicable element(s). 2398515Sbmah# 2498515Sbmah.if defined(INCLUDE_HISTORIC) 2598515SbmahJADEFLAGS+= -iinclude.historic 2698515Sbmah.else 2798515SbmahJADEFLAGS+= -ino.include.historic 2898515Sbmah.endif 29133094Ssimon 30133094Ssimon# 31133094Ssimon# Automatic device list generation: 32133094Ssimon# 33133094Ssimon.if exists(${RELN_ROOT}/../man4) 34133094SsimonMAN4DIR?= ${RELN_ROOT}/../man4 35133094Ssimon.elif exists(${RELN_ROOT}/../../man4) 36133094SsimonMAN4DIR?= ${RELN_ROOT}/../../man4 37133094Ssimon.else 38133094SsimonMAN4DIR?= ${RELN_ROOT}/../../share/man/man4 39133094Ssimon.endif 40133094SsimonMAN4PAGES?= ${MAN4DIR}/*.4 ${MAN4DIR}/man4.*/*.4 41133094SsimonARCHLIST?= ${RELN_ROOT}/share/misc/dev.archlist.txt 42133094SsimonDEV-AUTODIR= ${RELN_ROOT:S/${.CURDIR}/${.OBJDIR}/}/share/sgml 43133094SsimonCLEANFILES+= ${DEV-AUTODIR}/dev-auto.sgml ${DEV-AUTODIR}/catalog-auto 44133094Ssimon 45133322ShrsMAN2HWNOTES_CMD=${RELN_ROOT}/share/misc/man2hwnotes.pl 46166778Sbmah.if defined(HWNOTES_MI) 47166778SbmahMAN2HWNOTES_FLAGS= 48166778Sbmah.else 49166778SbmahMAN2HWNOTES_FLAGS= -c 50166778Sbmah.endif 51133322Shrs 52133094Ssimon# Dependency that the article makefiles can use to pull in 53133094Ssimon# dev-auto.sgml. 54133094Ssimon${DEV-AUTODIR}/catalog-auto ${DEV-AUTODIR}/dev-auto.sgml: ${MAN4PAGES} \ 55133322Shrs ${ARCHLIST} ${MAN2HWNOTES_CMD} 56166778Sbmah cd ${RELN_ROOT}/share/sgml && make MAN2HWNOTES_FLAGS=${MAN2HWNOTES_FLAGS} dev-auto.sgml 57