summaryrefslogtreecommitdiff
path: root/Freuet_euch_allezeit
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-08 10:00:57 +0200
committerErich Eckner <git@eckner.net>2019-10-08 10:08:27 +0200
commit80fd49fbc1205b62373a7dff40c6fbfc93d42c8d (patch)
tree301a92a8bf2e3128eb5e9ea81b10182f8880560b /Freuet_euch_allezeit
parent0ea37da91f172f7b5a8f443ea21469dc8c5a9883 (diff)
downloadMusik-80fd49fbc1205b62373a7dff40c6fbfc93d42c8d.tar.xz
Freuet_euch_allezeit: Makefile neu
Diffstat (limited to 'Freuet_euch_allezeit')
-rw-r--r--Freuet_euch_allezeit/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Freuet_euch_allezeit/Makefile b/Freuet_euch_allezeit/Makefile
new file mode 100644
index 0000000..20e6f0a
--- /dev/null
+++ b/Freuet_euch_allezeit/Makefile
@@ -0,0 +1,36 @@
+CURDOC=$(shell basename "$(CURDIR)")
+STROPHEN=[1-3][DE]
+TRANSPOSE=c
+
+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 ($(OBERSTIMME),1)
+ OBERSTIMMEN_REGEX=s/%Oberstimme%//;
+else
+ OBERSTIMMEN_REGEX=/%Oberstimme%/d;
+endif
+
+all: $(CURDOC).pdf
+ pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true
+
+clean:
+ rm -f *.pre
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+%.pre: %.ly
+ sed " \
+ s@%spezifisch%@$(SPEZIFISCH)@ ; \
+ s@%TRANSPOSE%@$(TRANSPOSE)@g; \
+ $(OBERSTIMMEN_REGEX) \
+ s/%STR_\($(STROPHEN)\)%//; \
+ " "$<" > "$@"
+
+%.pdf: %.pre *.ly
+ lilypond $<