From f4ec9bac245b8d8382a396591b2a5df3b591828e Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Fri, 4 Nov 2016 21:33:47 +0900 Subject: [PATCH] Issue 5000/2: Add font-export and never-embed options for document building This commit adds `-dfont-export-dir=[dir]` option and `-dgs-never-embed-fonts` option for document building. --- make/lilypond-vars.make | 6 ++++++ make/lysdoc-targets.make | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/make/lilypond-vars.make b/make/lilypond-vars.make index e67a570c92..1fd163caa1 100644 --- a/make/lilypond-vars.make +++ b/make/lilypond-vars.make @@ -48,6 +48,12 @@ $(LANG_TEXIDOC_FLAGS) \ -ddump-signatures \ -danti-alias-factor=$(ANTI_ALIAS_FACTOR) +ifeq ($(USE_EXTRACTPDFMARK),yes) +LILYPOND_BOOK_LILYPOND_FLAGS+= \ +-dfont-export-dir=$(top-build-dir)/out-fonts \ +-dgs-never-embed-fonts +endif + ifdef QUIET_BUILD LILYPOND_BOOK_WARN = --loglevel=NONE else diff --git a/make/lysdoc-targets.make b/make/lysdoc-targets.make index 5290e3962f..547614cbd5 100644 --- a/make/lysdoc-targets.make +++ b/make/lysdoc-targets.make @@ -16,6 +16,10 @@ local-test: echo -e '\n\n\n' ; \ (cd $(top-src-dir) && git diff ) ; \ fi > $(outdir)/tree.gittxt +ifeq ($(USE_EXTRACTPDFMARK),yes) + $(MAKE) LILYPOND_BOOK_LILYPOND_FLAGS="-dbackend=eps --formats=ps $(LILYPOND_JOBS) -dseparate-log-files -dinclude-eps-fonts -dgs-load-fonts --header=texidoc -I $(top-src-dir)/Documentation/included/ -ddump-profile -dcheck-internal-types -ddump-signatures -danti-alias-factor=1 -dfont-export-dir=$(top-build-dir)/out-fonts -dgs-never-embed-fonts" LILYPOND_BOOK_WARN= $(outdir)/collated-files.html LYS_OUTPUT_DIR=$(top-build-dir)/out/lybook-testdb +else $(MAKE) LILYPOND_BOOK_LILYPOND_FLAGS="-dbackend=eps --formats=ps $(LILYPOND_JOBS) -dseparate-log-files -dinclude-eps-fonts -dgs-load-lily-fonts --header=texidoc -I $(top-src-dir)/Documentation/included/ -ddump-profile -dcheck-internal-types -ddump-signatures -danti-alias-factor=1" LILYPOND_BOOK_WARN= $(outdir)/collated-files.html LYS_OUTPUT_DIR=$(top-build-dir)/out/lybook-testdb +endif rsync -L -a --exclude 'out-*' --exclude 'out' --exclude mf --exclude source --exclude mf $(top-build-dir)/out/share $(outdir) -- 2.39.2