From 0c11f362cc9ef36d98a37ac99dc1bba680c4133f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 30 Sep 2019 10:04:01 +0200 Subject: Froehlichkeit_und_leichtes_Leben: Makefile neu --- .../Froehlichkeit_und_leichtes_Leben.ly | 23 +++++++--------- Froehlichkeit_und_leichtes_Leben/Makefile | 32 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 13 deletions(-) create mode 100644 Froehlichkeit_und_leichtes_Leben/Makefile diff --git a/Froehlichkeit_und_leichtes_Leben/Froehlichkeit_und_leichtes_Leben.ly b/Froehlichkeit_und_leichtes_Leben/Froehlichkeit_und_leichtes_Leben.ly index 5b996dd..0587745 100644 --- a/Froehlichkeit_und_leichtes_Leben/Froehlichkeit_und_leichtes_Leben.ly +++ b/Froehlichkeit_und_leichtes_Leben/Froehlichkeit_und_leichtes_Leben.ly @@ -1,22 +1,27 @@ \include "deutsch.ly" +#(ly:set-option 'relative-includes #t) \include "stimmen.ly" \include "texte.ly" +#(ly:set-option 'relative-includes #f) -#(set! paper-alist (cons '("kindle" . (cons (* 210 mm) (* 130 mm))) paper-alist)) -#(set-default-paper-size "kindle") +%spezifisch% \pointAndClickOff \header { - title = "Fröhlichkeit und leichtes Leben" tagline = "" } - \paper { top-margin = 5 + print-all-headers = ##t } -inhalt = { +\score { + \header { + title = "Fröhlichkeit und leichtes Leben" + composer = "Text und Satz (nach einer Vorlage von Felice Giardini um 1760): Josef Michel 1978" + tagline = "" + } \new ChoirStaff << \set Score.skipBars = ##t \new Staff << @@ -35,17 +40,9 @@ inhalt = { \new Lyrics \lyricsto maenner { \textAm } \new Lyrics \lyricsto maenner { \textBm } >> -} - -\score { - \inhalt \layout { indent = #0 } -} - -\score { - \unfoldRepeats { \inhalt } \midi { \context { \Score diff --git a/Froehlichkeit_und_leichtes_Leben/Makefile b/Froehlichkeit_und_leichtes_Leben/Makefile new file mode 100644 index 0000000..d77f888 --- /dev/null +++ b/Froehlichkeit_und_leichtes_Leben/Makefile @@ -0,0 +1,32 @@ +CURDOC=$(shell basename "$(CURDIR)") + +ifeq ($(FUER),ewe) + SPEZIFISCH=\#(set! paper-alist (cons '(\"kindle\" . (cons (* 210 mm) (* 130 mm))) paper-alist))\n\#(set-default-paper-size \"kindle\") +else + SPEZIFISCH= + # \#(set-global-staff-size 14) +endif + +ifeq ($(MIDI),1) + MIDI_REGEX= +else + MIDI_REGEX=/\\\\midi/{ :a; s/\\\\midi[^{}]*{/\\\\midi/; tb; N; ba; :b; s/{[^{}]*}//; tb; s/\\\\midi[^{}]*}//; t; N; bb; } +endif + +all: $(CURDOC).pdf + pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true + +clean: + rm -f *.pre + +Clean: clean + rm -f *.pdf *.midi + +%.pre: %.ly + sed " \ + s@%spezifisch%@$(SPEZIFISCH)@ ; \ + $(MIDI_REGEX) \ + " "$<" > "$@" + +%.pdf: %.pre *.ly + lilypond $< -- cgit v1.2.3-70-g09d2