From patchwork Thu Nov 2 18:42:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [esnacc-dev] build: Do not fail build if xsltproc is missing X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 20 X-Patchwork-Delegate: aconole@bytheb.org Message-Id: <20171102184219.18071-1-aconole@bytheb.org> To: dev@lists.esnacc.org Cc: Vegar Westerlund Date: Thu, 2 Nov 2017 14:42:19 -0400 From: Aaron Conole List-Id: eSNACC Development discussion From: Vegar Westerlund As a side-effect this makes it possible to compile without having network access (since xsltproc needs to go online to fetch some xml). Signed-off-by: Vegar Westerlund Signed-off-by: Aaron Conole --- compiler/automake.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/automake.mk b/compiler/automake.mk index dd59446..623f82d 100644 --- a/compiler/automake.mk +++ b/compiler/automake.mk @@ -92,7 +92,8 @@ DISTCLEANFILES += compiler/esnacc.1 endif compiler/esnacc.1: compiler/esnacc.xml - $(XSLTPROC) --novalid -o $@ $(DOCBOOK_LOCATION) $< + @test -x "$(XSLTPROC)" && $(XSLTPROC) --novalid -o $@ $(DOCBOOK_LOCATION) $< + @test -x "$(XSLTPROC)" || echo "Not generating documentation, xsltproc missing"; true CLEANFILES += compiler/core/lex-asn1.c \ compiler/core/y.output \