summaryrefslogtreecommitdiff
path: root/Tochter_Zion
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-17 13:20:08 +0100
committerErich Eckner <git@eckner.net>2018-11-17 13:20:08 +0100
commit7c21d786a9e6605eb9a0d2832bd7ba660dff1c3b (patch)
tree317c752119eb01652f4083950b36c815dd03282c /Tochter_Zion
parent228854632e2ecd77076e800603d80705f3a91539 (diff)
downloadMusik-7c21d786a9e6605eb9a0d2832bd7ba660dff1c3b.tar.xz
Tochter_Zion: Makefile neu
Diffstat (limited to 'Tochter_Zion')
-rw-r--r--Tochter_Zion/Makefile43
-rw-r--r--Tochter_Zion/Tochter_Zion.ly7
2 files changed, 48 insertions, 2 deletions
diff --git a/Tochter_Zion/Makefile b/Tochter_Zion/Makefile
new file mode 100644
index 0000000..3fa24ea
--- /dev/null
+++ b/Tochter_Zion/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/Tochter_Zion/Tochter_Zion.ly b/Tochter_Zion/Tochter_Zion.ly
index c4dd093..def3858 100644
--- a/Tochter_Zion/Tochter_Zion.ly
+++ b/Tochter_Zion/Tochter_Zion.ly
@@ -5,13 +5,16 @@
\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 = ##f
+}
\paper {
top-margin = 5
+ print-all-headers = ##t
}
#(ly:set-option 'relative-includes #t)