diff options
author | Erich Eckner <git@eckner.net> | 2019-01-03 13:27:50 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-03 13:27:50 +0100 |
commit | 6cdbc32210264b3876273abe790fda0131620589 (patch) | |
tree | f29a29307e602a073799f19596617803a01863f0 /Nun_danket_alle_Gott | |
parent | 2d21c2296b896d6f194c3f4b067fa7c4d87e2535 (diff) | |
download | Musik-6cdbc32210264b3876273abe790fda0131620589.tar.xz |
Nun_danket_alle_Gott: Makefile neu
Diffstat (limited to 'Nun_danket_alle_Gott')
-rw-r--r-- | Nun_danket_alle_Gott/Makefile | 43 | ||||
-rw-r--r-- | Nun_danket_alle_Gott/Nun_danket_alle_Gott.ly | 19 |
2 files changed, 52 insertions, 10 deletions
diff --git a/Nun_danket_alle_Gott/Makefile b/Nun_danket_alle_Gott/Makefile new file mode 100644 index 0000000..3fa24ea --- /dev/null +++ b/Nun_danket_alle_Gott/Makefile @@ -0,0 +1,43 @@ +CURDOC=$(shell basename "$(CURDIR)") +STROPHEN=[1-9]\|1[01] + +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 + +ifeq ($(KLAVIER),1) + KLAVIER_REGEX= +else + KLAVIER_REGEX=/%Klavier%/d; +endif + +all: $(CURDOC).pdf + +clean: + rm -f *.pre + +Clean: clean + rm -f *.pdf *.midi + +%.pre: %.ly + sed " \ + s@%spezifisch%@$(SPEZIFISCH)@ ; \ + /%STR_\($(STROPHEN)\)%/{ \ + s/%[A-Z_0-9]\+%//; \ + p; \ + d; \ + }; \ + /%[A-Z_0-9]\+%/d \ + " "$<" > "$@" + +%.pdf: %.pre *.ly + lilypond $< diff --git a/Nun_danket_alle_Gott/Nun_danket_alle_Gott.ly b/Nun_danket_alle_Gott/Nun_danket_alle_Gott.ly index d90bb27..98a469d 100644 --- a/Nun_danket_alle_Gott/Nun_danket_alle_Gott.ly +++ b/Nun_danket_alle_Gott/Nun_danket_alle_Gott.ly @@ -1,14 +1,15 @@ \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 { - tagline = "" + tagline = ##f } \paper { top-margin = 5 @@ -17,13 +18,11 @@ \score { \new ChoirStaff << \set Score.skipBars = ##t - \new Staff { - << - \new Voice = frauen { \generalPausen \bar "|." } - \new Voice = sopran { \global \voiceOne \sopranMelodie \bar "|." } - \new Voice = alt { \global \voiceTwo \altMelodie \bar "|." } - >> - } + \new Staff << + \new Voice = frauen { \generalPausen \bar "|." } + \new Voice = sopran { \global \voiceOne \sopranMelodie \bar "|." } + \new Voice = alt { \global \voiceTwo \altMelodie \bar "|." } + >> \new Lyrics \lyricsto sopran { \sopranTextI } \new Lyrics \lyricsto sopran { \sopranTextII } \new Staff << |