diff options
author | Erich Eckner <git@eckner.net> | 2019-01-20 14:21:55 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-20 14:21:55 +0100 |
commit | 0608b544c7591f2b124728918e34ce63acde70a4 (patch) | |
tree | 18f7e4b616ef3051daceed933a00423b7b53e653 /Unser_Vater | |
parent | 974d4d9ad1adc35ac3d5f95cc0d0725dcd752097 (diff) | |
download | Musik-0608b544c7591f2b124728918e34ce63acde70a4.tar.xz |
Unser_Vater: Makefile neu
Diffstat (limited to 'Unser_Vater')
-rw-r--r-- | Unser_Vater/Makefile | 43 | ||||
-rw-r--r-- | Unser_Vater/Unser_Vater.ly | 12 |
2 files changed, 52 insertions, 3 deletions
diff --git a/Unser_Vater/Makefile b/Unser_Vater/Makefile new file mode 100644 index 0000000..3fa24ea --- /dev/null +++ b/Unser_Vater/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/Unser_Vater/Unser_Vater.ly b/Unser_Vater/Unser_Vater.ly index 3503e26..6406568 100644 --- a/Unser_Vater/Unser_Vater.ly +++ b/Unser_Vater/Unser_Vater.ly @@ -1,21 +1,27 @@ +\version "2.19.82" + \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 = "" - title = "Unser Vater" } \paper { top-margin = 5 + print-all-headers = ##t } \score { + \header { + title = "Unser Vater" + } \layout { indent = #0 \context { |