From c0e4fdbdd8ce0bb841b8306cd957e28dec5c0cad Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 8 Oct 2019 15:14:22 +0200 Subject: [PATCH] follouwp: test for instant view may not fail, else Make thins something real failed Signed-off-by: Thomas Lamprecht --- Makefile | 2 +- pve-doc-generator.mk.in | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6eb2639..ca56e96 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ README.html: README.adoc .PHONY: index index: index.html - test -n "$${PVE_DOC_INSTANTVIEW}" && $(BROWSER) index.html & + test -z "$${PVE_DOC_INSTANTVIEW}" || $(BROWSER) index.html & chapter-index-table.adoc: asciidoc-pve ./asciidoc-pve chapter-table >$@.tmp diff --git a/pve-doc-generator.mk.in b/pve-doc-generator.mk.in index 6073728..77fd4f6 100644 --- a/pve-doc-generator.mk.in +++ b/pve-doc-generator.mk.in @@ -76,21 +76,21 @@ chapter-%.html: %.adoc ${PVE_COMMON_DOC_SOURCES} %.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc - test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@ + test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@ %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc %.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc - test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@ + test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@ %.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc - test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@ + test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@ %.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc -- 2.39.2