summaryrefslogtreecommitdiff
path: root/Macht_hoch_die_Tuer/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-06 14:33:06 +0100
committerErich Eckner <git@eckner.net>2019-12-06 14:33:06 +0100
commit80fd88fac461281f130792fad19fcf60326d9eed (patch)
tree13dc568bf720803b14c2ae664bd073f8c2dded01 /Macht_hoch_die_Tuer/Makefile
parent151dfef168f439df901f8cc5b8f1a8ae9346b9af (diff)
downloadMusik-80fd88fac461281f130792fad19fcf60326d9eed.tar.xz
Macht_hoch_die_Tuer: Fermaten durch Pausen ersetzbar
Diffstat (limited to 'Macht_hoch_die_Tuer/Makefile')
-rw-r--r--Macht_hoch_die_Tuer/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Macht_hoch_die_Tuer/Makefile b/Macht_hoch_die_Tuer/Makefile
index df6d406..9c4a6bd 100644
--- a/Macht_hoch_die_Tuer/Makefile
+++ b/Macht_hoch_die_Tuer/Makefile
@@ -1,5 +1,6 @@
CURDOC=$(shell basename "$(CURDIR)")
STROPHEN=[1-5]
+PAUSE_STATT_FERMATE=0
ifeq ($(FUER),ewe)
SPEZIFISCH=\#(set! paper-alist (cons '(\"kindle\" . (cons (* 210 mm) (* 130 mm))) paper-alist))\n\#(set-default-paper-size \"kindle\")
@@ -20,6 +21,12 @@ else
KLAVIER_REGEX=/%Klavier%/d;
endif
+ifeq ($(PAUSE_STATT_FERMATE),1)
+ FERMATEN_REGEX=/%fermate$$/ s/2\\([_^]\\?\\\\fermata\\)\\? /4 s /;
+else
+ FERMATEN_REGEX=/%fermaten_pause$$/d;
+endif
+
all: $(CURDOC).pdf
pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true
@@ -37,8 +44,14 @@ Clean: clean
p; \
d; \
}; \
+ $(FERMATEN_REGEX) \
/%[A-Z_0-9]\+%/d \
" "$<" > "$@"
-%.pdf: %.pre *.ly
+stimmen.pre: stimmen.ly
+ sed " \
+ $(FERMATEN_REGEX) \
+ " "$<" > "$@"
+
+%.pdf: %.pre stimmen.pre texte.ly
lilypond $<