diff options
author | Erich Eckner <git@eckner.net> | 2019-03-28 09:43:06 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-28 09:43:06 +0100 |
commit | 0e6dd42c75399a27a26d28a8d88adb181b93d8f0 (patch) | |
tree | e21f43cf889d054a597b06dac8ebe1ba77ac7a02 /Gib_Frieden_Herr_gib_Frieden/Makefile | |
parent | 91763c6d39ff2f1dc9bf73dc0c79248f39d08e65 (diff) | |
download | Musik-0e6dd42c75399a27a26d28a8d88adb181b93d8f0.tar.xz |
Gib_Frieden_Herr_gib_Frieden neu
Diffstat (limited to 'Gib_Frieden_Herr_gib_Frieden/Makefile')
-rw-r--r-- | Gib_Frieden_Herr_gib_Frieden/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Gib_Frieden_Herr_gib_Frieden/Makefile b/Gib_Frieden_Herr_gib_Frieden/Makefile new file mode 100644 index 0000000..921a24f --- /dev/null +++ b/Gib_Frieden_Herr_gib_Frieden/Makefile @@ -0,0 +1,43 @@ +CURDOC=$(shell basename "$(CURDIR)") +STROPHEN=[1-9]\|1[01] + +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 19.5) +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 + +ifeq ($(KLAVIER),1) + KLAVIER_REGEX= +else + KLAVIER_REGEX=/%Klavier%/d; +endif + +all: $(CURDOC).pdf + pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' + +clean: + rm -f *.pre + +Clean: clean + rm -f *.pdf *.midi + +%.pre: %.ly + sed " \ + s@%spezifisch%@$(SPEZIFISCH)@ ; \ + /%STR_\($(STROPHEN)\)%/{ \ + s/%[A-Z_0-9]\+%//; \ + p; \ + d; \ + }; \ + /%[A-Z_0-9]\+%/d \ + " "$<" > "$@" + +%.pdf: %.pre *.ly + lilypond $< |