From: John Mandereau <john.mandereau@gmail.com>
Date: Mon, 27 Aug 2012 13:52:15 +0000 (+0200)
Subject: Make man/install-help2man: use LILYPOND_EXTERNAL_BINARY if set
X-Git-Tag: release/2.17.0-1^0
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3772b2c7d022122eb9c791bd4a32178e76b97014;p=lilypond.git

Make man/install-help2man: use LILYPOND_EXTERNAL_BINARY if set

This should help GUB build.
---

diff --git a/lily/GNUmakefile b/lily/GNUmakefile
index abb48fe5ae..e67a883675 100644
--- a/lily/GNUmakefile
+++ b/lily/GNUmakefile
@@ -77,6 +77,11 @@ endif
 $(outdir)/lexer.cc: $(config_h)
 $(outdir)/parser.cc: $(config_h)
 
+ifneq ($(LILYPOND_EXTERNAL_BINARY),)
+$(outdir)/lilypond.1: $(LILYPOND_EXTERNAL_BINARY) $(buildscript-dir)/help2man
+	$(buildscript-dir)/help2man $(LILYPOND_EXTERNAL_BINARY) > $@
+endif
+
 $(outdir)/general-scheme.o: $(outdir)/version.hh
 $(outdir)/lily-guile.o: $(outdir)/version.hh
 $(outdir)/lily-version.o: $(outdir)/version.hh