svn commit: r51055 - 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 20:07:58 2017
New Revision: 51055
URL: https://svnweb.freebsd.org/changeset/doc/51055

Log:
  Reapply r51054, with a few fixes.
  Fix a typo: s/elfi/elif/
  Remove dependencies from the dev-auto.ent target, which seems
  I misread the original version of how this was invoked.
  
  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:57:39 2017	(r51054)
+++ head/en_US.ISO8859-1/htdocs/releases/12.0R/Makefile	Thu Oct  5 20:07:58 2017	(r51055)
@@ -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
+. elif 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:
+	${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} -B -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.