summaryrefslogtreecommitdiff
path: root/Kanons/Du_bist_mein_ich_bin_dein/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-18 11:39:14 +0200
committerErich Eckner <git@eckner.net>2018-05-18 11:39:14 +0200
commit20aab94fc81cb2988491bdeca410af00880efa38 (patch)
tree3ac73cc99d142946409a07cd5e48a5c8e3cde526 /Kanons/Du_bist_mein_ich_bin_dein/Makefile
parent10f3855608a4a6e92b2c18cb321e4048b0cbaf77 (diff)
downloadMusik-20aab94fc81cb2988491bdeca410af00880efa38.tar.xz
Du_bist_mein_ich_bin_dein neu
Diffstat (limited to 'Kanons/Du_bist_mein_ich_bin_dein/Makefile')
-rw-r--r--Kanons/Du_bist_mein_ich_bin_dein/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Kanons/Du_bist_mein_ich_bin_dein/Makefile b/Kanons/Du_bist_mein_ich_bin_dein/Makefile
new file mode 100644
index 0000000..5b3af49
--- /dev/null
+++ b/Kanons/Du_bist_mein_ich_bin_dein/Makefile
@@ -0,0 +1,31 @@
+CURDOC=$(shell basename "$(CURDIR)")
+
+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 ($(MIDI),1)
+ MIDI_REGEX=
+else
+ MIDI_REGEX=/\\\\midi/{ :a; s/\\\\midi[^{}]*{/\\\\midi/; tb; N; ba; :b; s/{[^{}]*}//; tb; s/\\\\midi[^{}]*}//; t; N; bb; }
+endif
+
+all: $(CURDOC).pdf
+
+clean:
+ rm -f *.pre
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+%.pre: %.ly
+ sed " \
+ s@%spezifisch%@$(SPEZIFISCH)@ ; \
+ $(MIDI_REGEX) \
+ " "$<" > "$@"
+
+%.pdf: %.pre *.ly
+ lilypond $<