summaryrefslogtreecommitdiff
path: root/Schmueckt_das_Fest_mit_Maien
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-22 15:41:33 +0100
committerErich Eckner <git@eckner.net>2020-01-22 15:41:33 +0100
commitcfab28aed5c33bbe8d0fe577f8ae5f1799132d8f (patch)
treed4f0b956256e9bd238f6ef35ea058366dc8b6b92 /Schmueckt_das_Fest_mit_Maien
parent714fc329d56cab9dc796bbc7b51f80e804782ea2 (diff)
downloadMusik-cfab28aed5c33bbe8d0fe577f8ae5f1799132d8f.tar.xz
Schmueckt_das_Fest_mit_Maien: mit m4 prozessieren - das soll irgendwann mit allen Stücken gehen!
Diffstat (limited to 'Schmueckt_das_Fest_mit_Maien')
-rw-r--r--Schmueckt_das_Fest_mit_Maien/Makefile34
-rwxr-xr-xSchmueckt_das_Fest_mit_Maien/Schmueckt_das_Fest_mit_Maien.ly10
2 files changed, 11 insertions, 33 deletions
diff --git a/Schmueckt_das_Fest_mit_Maien/Makefile b/Schmueckt_das_Fest_mit_Maien/Makefile
index 1d86955..90faa64 100644
--- a/Schmueckt_das_Fest_mit_Maien/Makefile
+++ b/Schmueckt_das_Fest_mit_Maien/Makefile
@@ -1,18 +1,4 @@
CURDOC=$(shell basename "$(CURDIR)")
-STROPHEN=[^%]
-
-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 ($(UNTERSTIMMEN),1)
- UNTERSTIMMEN_REGEX=s@%unterstimme%@@
-else
- UNTERSTIMMEN_REGEX=
-endif
all: $(CURDOC).pdf
pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true
@@ -23,19 +9,13 @@ clean:
Clean: clean
rm -f *.pdf *.midi
+include ../.meta/*.mk
+
%.pre: %.ly
- sed " \
- s@%spezifisch%@$(SPEZIFISCH)@ ; \
- s@%spezifisch%@$(SPEZIFISCH)@ ; \
- $(UNTERSTIMMEN_REGEX); \
- /%STR_\($(STROPHEN)\)%/{ \
- s/%[A-Z_0-9]\+%//; \
- p; \
- d; \
- }; \
- /%[A-Z_0-9]\+%/d \
- " "$<" > "$@"
+ cat "$<" > "$@"
-%.pdf: %.pre *.ly
- lilypond $<
+%.post: %.pre
+ m4 <"$<" >"$@"
+%.pdf: %.post $(patsubst %.ly,%.post, $(shell ls *.ly))
+ lilypond $<
diff --git a/Schmueckt_das_Fest_mit_Maien/Schmueckt_das_Fest_mit_Maien.ly b/Schmueckt_das_Fest_mit_Maien/Schmueckt_das_Fest_mit_Maien.ly
index 6653129..353e3f0 100755
--- a/Schmueckt_das_Fest_mit_Maien/Schmueckt_das_Fest_mit_Maien.ly
+++ b/Schmueckt_das_Fest_mit_Maien/Schmueckt_das_Fest_mit_Maien.ly
@@ -4,8 +4,6 @@
\include "texte.ly"
#(ly:set-option 'relative-includes #f)
-%spezifisch%
-
\pointAndClickOff
\header {
@@ -23,10 +21,10 @@
\new ChoirStaff <<
\new Staff <<
\new Voice = "sopran" { \global \melodie }
- %STR_1% \new Lyrics \lyricsto "sopran" \textI
- %STR_2% \new Lyrics \lyricsto "sopran" \textII
- %STR_3% \new Lyrics \lyricsto "sopran" \textIII
- %STR_4% \new Lyrics \lyricsto "sopran" \textIV
+ ifdef(`STR_1', \new Lyrics \lyricsto "sopran" \textI, )
+ ifdef(`STR_2', \new Lyrics \lyricsto "sopran" \textII, )
+ ifdef(`STR_3', \new Lyrics \lyricsto "sopran" \textIII, )
+ ifdef(`STR_4', \new Lyrics \lyricsto "sopran" \textIV, )
>>
>>
\layout {