summaryrefslogtreecommitdiff
path: root/Denn_er_hat_seinen_Engeln_
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-22 14:20:54 +0100
committerErich Eckner <git@eckner.net>2020-01-22 14:20:54 +0100
commit714fc329d56cab9dc796bbc7b51f80e804782ea2 (patch)
treec30b56ab5986a6e58abfc4af482789c2ea1e703e /Denn_er_hat_seinen_Engeln_
parent2221fde48fb68ec9c3746100c5bf6b07f617ce40 (diff)
downloadMusik-714fc329d56cab9dc796bbc7b51f80e804782ea2.tar.xz
Makefiles noch mehr vereinheitlicht
Diffstat (limited to 'Denn_er_hat_seinen_Engeln_')
-rw-r--r--Denn_er_hat_seinen_Engeln_/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/Denn_er_hat_seinen_Engeln_/Makefile b/Denn_er_hat_seinen_Engeln_/Makefile
index d77f888..9a5f07f 100644
--- a/Denn_er_hat_seinen_Engeln_/Makefile
+++ b/Denn_er_hat_seinen_Engeln_/Makefile
@@ -1,16 +1,17 @@
CURDOC=$(shell basename "$(CURDIR)")
+STROPHEN=[^%]
+VARIANTE=1
-ifeq ($(FUER),ewe)
- SPEZIFISCH=\#(set! paper-alist (cons '(\"kindle\" . (cons (* 210 mm) (* 130 mm))) paper-alist))\n\#(set-default-paper-size \"kindle\")
+ifeq ($(MIDI),1)
+ MIDI_REGEX=
else
- SPEZIFISCH=
- # \#(set-global-staff-size 14)
+ MIDI_REGEX=/\\\\midi/{ :a; s/\\\\midi[^{}]*{/\\\\midi/; tb; N; ba; :b; s/{[^{}]*}//; tb; s/\\\\midi[^{}]*}//; t; N; bb; };
endif
-ifeq ($(MIDI),1)
- MIDI_REGEX=
+ifeq ($(KLAVIER),1)
+ KLAVIER_REGEX=
else
- MIDI_REGEX=/\\\\midi/{ :a; s/\\\\midi[^{}]*{/\\\\midi/; tb; N; ba; :b; s/{[^{}]*}//; tb; s/\\\\midi[^{}]*}//; t; N; bb; }
+ KLAVIER_REGEX=/%Klavier%/d;
endif
all: $(CURDOC).pdf
@@ -25,8 +26,22 @@ Clean: clean
%.pre: %.ly
sed " \
s@%spezifisch%@$(SPEZIFISCH)@ ; \
+ s/%STR_\($(STROPHEN)\)%//g; \
+ s/%Variante_$(VARIANTE)%//; \
+ $(KLAVIER_REGEX) \
$(MIDI_REGEX) \
" "$<" > "$@"
-%.pdf: %.pre *.ly
+$(CURDOC).meta: $(CURDOC)-plain.meta
+ cat "$<" >"$@"
+
+$(CURDOC)-%.meta: ../.meta/%.meta $(CURDOC).pre
+ sed " \
+ 1 i define(input,$(CURDOC).pre) \
+ " "$<" \
+ | m4 \
+ >"$@"
+
+%.pdf: %.meta stimmen.pre texte.pre
lilypond $<
+ pkill -SIGHUP -xf "mupdf $@" || true