summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-30 10:04:01 +0200
committerErich Eckner <git@eckner.net>2019-09-30 10:04:01 +0200
commit0c11f362cc9ef36d98a37ac99dc1bba680c4133f (patch)
tree39ce706e801178b073167adda5cdf8c55b8a456a
parentb24d8abd064b44befb7b380e3a35981e59a4bdd9 (diff)
downloadMusik-0c11f362cc9ef36d98a37ac99dc1bba680c4133f.tar.xz
Froehlichkeit_und_leichtes_Leben: Makefile neu
-rw-r--r--Froehlichkeit_und_leichtes_Leben/Froehlichkeit_und_leichtes_Leben.ly23
-rw-r--r--Froehlichkeit_und_leichtes_Leben/Makefile32
2 files changed, 42 insertions, 13 deletions
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 $<