switch opt-out NOVIEW to opt-in PVE_DOC_INSTANTVIEW

As we had to set NOVIEW _everywhere_, which is a good sign that
opt-in is much better suited than opt out.

Especially as one can point the browser or man to the resulting build
documentation html file or manpage once and then hit just reload after
a re-build, which is almost zero effort.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-09-24 17:13:58 +02:00
parent 33e0c96504
commit 9c2d4f5308
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ README.html: README.adoc
.PHONY: index .PHONY: index
index: index.html index: index.html
$(BROWSER) index.html & test -n "$${PVE_DOC_INSTANTVIEW}" && $(BROWSER) index.html &
chapter-index-table.adoc: asciidoc-pve chapter-index-table.adoc: asciidoc-pve
./asciidoc-pve chapter-table >$@.tmp ./asciidoc-pve chapter-table >$@.tmp

View File

@ -76,21 +76,21 @@ chapter-%.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
%.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} %.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
${ASCIIDOC_PVE} compile-man -o $@ $*.adoc ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
test -n "$${NOVIEW}" || man -l $@ test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
%.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
%.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} %.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
${ASCIIDOC_PVE} compile-man -o $@ $*.adoc ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
test -n "$${NOVIEW}" || man -l $@ test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
%.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} %.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
%.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
${ASCIIDOC_PVE} compile-man -o $@ $*.adoc ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
test -n "$${NOVIEW}" || man -l $@ test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
%.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} %.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc