version 1.72, 2011/07/30 16:50:41 |
version 1.73, 2020/01/20 21:39:50 |
|
|
# They are generated in the "all" target, installed in the "install" |
# They are generated in the "all" target, installed in the "install" |
# target and removed in the "clean" target. |
# target and removed in the "clean" target. |
# |
# |
# LISTDOCS: |
|
# The list of *.list files that will be converted to HTML. |
|
# |
|
# LISTCOLLECTION: |
|
# The name of the collection of manual pages that should be used |
|
# for linking to the appropriate pages. It has the form |
|
# NetBSD-${version}. |
|
# |
|
# Example: |
|
# LISTCOLLECTION= NetBSD-1.6 |
|
# |
|
# XMLDOCS: |
# XMLDOCS: |
# (See web.xml.mk.) |
# (See web.xml.mk.) |
# |
# |
Line 105 HTML2TXTOPTS?= -force_html -dump -nolist |
|
Line 94 HTML2TXTOPTS?= -force_html -dump -nolist |
|
ISPELL?= ispell |
ISPELL?= ispell |
ISPELLOPTS?= -l -p ${WEB_PREFIX}/en/share/dict/words ${ISPELLFLAGS} |
ISPELLOPTS?= -l -p ${WEB_PREFIX}/en/share/dict/words ${ISPELLFLAGS} |
|
|
# Handle old .LIST files. |
|
.if exists(${WEB_PREFIX}/${DOCLANG}/list2html.pl) |
|
LIST2HTML?= ${PERL} ${WEB_PREFIX}/${DOCLANG}/list2html.pl |
|
.else |
|
LIST2HTML?= ${PERL} ${WEB_PREFIX}/list2html.pl |
|
.endif |
|
|
|
LIST2HTMLOPTS?= -q |
|
.if defined(LISTCOLLECTION) |
|
LIST2HTMLOPTS+= -c ${LISTCOLLECTION} |
|
.endif |
|
|
|
# for docbook-website DTD |
# for docbook-website DTD |
# |
# |
# Note: must be before web.xml.mk. |
# Note: must be before web.xml.mk. |
|
|
@${ECHO} "[html2txt] ${.IMPSRC} -> ${.TARGET}" |
@${ECHO} "[html2txt] ${.IMPSRC} -> ${.TARGET}" |
${RUN} ${HTML2TXT} ${HTML2TXTOPTS} ${.IMPSRC} > ${.TARGET} |
${RUN} ${HTML2TXT} ${HTML2TXTOPTS} ${.IMPSRC} > ${.TARGET} |
|
|
### |
|
# file.list --> file.html |
|
# |
|
# Generate HTML from old LIST format files |
|
|
|
LISTDOCS?= # none |
|
.if ${LISTDOCS:N*.list} != "" |
|
ERRORS+= "All LISTDOCS entries must be of the form \"*.list\"." |
|
.endif |
|
GENDOCS+= ${LISTDOCS:.list=.html} |
|
|
|
.for list in ${LISTDOCS} |
|
. for html in ${list:.list=.html} |
|
${html}: ${list} |
|
@${ECHO} "[list2html] ${list} -> ${html}" |
|
${RUN} ${LIST2HTML} ${LIST2HTMLOPTS} ${list} ${html} |
|
. endfor |
|
.endfor |
|
|
|
# |
# |
# HTML files are just copied. |
# HTML files are just copied. |
# |
# |