diff options
author | Erich Eckner <git@eckner.net> | 2020-01-22 14:20:54 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-22 14:20:54 +0100 |
commit | 714fc329d56cab9dc796bbc7b51f80e804782ea2 (patch) | |
tree | c30b56ab5986a6e58abfc4af482789c2ea1e703e /Verleih_uns_Frieden__/Makefile | |
parent | 2221fde48fb68ec9c3746100c5bf6b07f617ce40 (diff) | |
download | Musik-714fc329d56cab9dc796bbc7b51f80e804782ea2.tar.xz |
Makefiles noch mehr vereinheitlicht
Diffstat (limited to 'Verleih_uns_Frieden__/Makefile')
-rw-r--r-- | Verleih_uns_Frieden__/Makefile | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/Verleih_uns_Frieden__/Makefile b/Verleih_uns_Frieden__/Makefile index d77f888..9a5f07f 100644 --- a/Verleih_uns_Frieden__/Makefile +++ b/Verleih_uns_Frieden__/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 |