svn commit: r51049 - head/en_US.ISO8859-1/htdocs/releases/12.0R

Glen Barber <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: gjb
Date: Thu Oct  5 19:06:31 2017
New Revision: 51049
URL: https://svnweb.freebsd.org/changeset/doc/51049

Log:
  Connect 12-CURRENT release notes and related documentation to the
  build.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/en_US.ISO8859-1/htdocs/releases/12.0R/Makefile

Modified: head/en_US.ISO8859-1/htdocs/releases/12.0R/Makefile
==============================================================================
--- head/en_US.ISO8859-1/htdocs/releases/12.0R/Makefile	Thu Oct  5 19:01:54 2017	(r51048)
+++ head/en_US.ISO8859-1/htdocs/releases/12.0R/Makefile	Thu Oct  5 19:06:31 2017	(r51049)
@@ -7,6 +7,8 @@
 .include "../Makefile.inc"
 .endif
 
+RELN_ROOT?=	${.CURDIR}
+
 _OS?=		FreeBSD
 _REVISION?=	12.0
 _BRANCH?=	RELEASE
@@ -51,6 +53,64 @@ _ARM?=		BANANAPI \
 . for _A in ${_ARM}
 #DATA+=		CHECKSUM.${CHECKSUM}-${THISRELEASE}-arm-armv6-${_A}.asc
 . endfor
+.endfor
+
+_hardware?=	hardware
+.if !defined(MAN4DIR) || empty(MAN4DIR)
+. if exists(${DOC_PREFIX}/../src/share/man/man4)
+MAN4DIR=	${DOC_PREFIX}/../src/share/man/man4
+. elif exists(${DOC_PREFIX}/../share/man/man4)
+MAN4DIR=	${DOC_PREFIX}/../share/man/man4
+. elfi exists(${DOC_PREFIX}/../man/man4)
+MAN4DIR=	${DOC_PREFIX}/../man/man4
+. elif exists(${DOC_PREFIX}/../man4)
+MAN4DIR=	${DOC_PREFIX}/../man4
+. else
+.  warning "MAN4DIR not found.  Unable to build hardware.html"
+_hardware=	# empty
+. endif
+.endif
+
+D=		errata
+D+=		${_hardware}
+D+=		readme
+D+=		relnotes
+
+MAN4PAGES?=	${MAN4DIR}/*.4 ${MAN4DIR}/man4.*/*.4
+ARCHLIST?=	${.CURDIR}/../../share/misc/dev.archlist.txt
+CLEANFILES+=	dev-auto.ent
+
+MAN2HWNOTES_CMD=${.CURDIR}/../../share/misc/man2hwnotes.pl
+.if defined(HWNOTES_MI)
+MAN2HWNOTES_FLAGS=
+.else
+MAN2HWNOTES_FLAGS=	-c
+.endif
+
+dev-auto.ent: ${MAN4PAGES} ${ARCHLIST} ${MAN2HWNOTES_CMD} .PHONY
+	${PERL} ${MAN2HWNOTES_CMD} ${MAN2HWNOTES_FLAGS} -a ${ARCHLIST} -o ${.TARGET} ${MAN4PAGES}
+
+.ORDER:		all dev-auto.ent
+.ORDER:		all ${DOC}.html
+
+beforebuild:	dev-auto.ent
+
+beforeclean:
+.for _SD in ${D}
+	${MAKE} -C ${_SD} DOCINSTALLDIR=${DOCINSTALLDIR} clean
+.endfor
+
+beforeinstall:
+.for _SD in ${D}
+. if (${_SD:Mhardware} != "")
+	${MAKE} -C ${.CURDIR} dev-auto.ent
+. endif
+	${MAKE} -C ${_SD} DOCINSTALLDIR=${DOCINSTALLDIR} all
+.endfor
+
+afterinstall:
+.for _SD in ${D}
+	${MAKE} -C ${_SD} DOCINSTALLDIR=${DOCINSTALLDIR} install
 .endfor
 
 .include "${DOC_PREFIX}/share/mk/web.site.mk"
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.