summaryrefslogtreecommitdiff
path: root/Komm_Gott_Schoepfer_Heiliger_Geist/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Komm_Gott_Schoepfer_Heiliger_Geist/Makefile')
-rw-r--r--Komm_Gott_Schoepfer_Heiliger_Geist/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/Komm_Gott_Schoepfer_Heiliger_Geist/Makefile b/Komm_Gott_Schoepfer_Heiliger_Geist/Makefile
new file mode 100644
index 0000000..ec7558b
--- /dev/null
+++ b/Komm_Gott_Schoepfer_Heiliger_Geist/Makefile
@@ -0,0 +1,40 @@
+CURDOC=$(shell basename "$(CURDIR)")
+STROPHEN=[1-7]
+
+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 ($(UNTERSTIMMEN),1)
+ UNTERSTIMMEN_REGEX=s@%unterstimme%@@
+else
+ UNTERSTIMMEN_REGEX=
+endif
+
+all: $(CURDOC).pdf
+
+clean:
+ rm -f *.pre
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+%.pre: %.ly
+ sed " \
+ s@%spezifisch%@$(SPEZIFISCH)@ ; \
+ s@%spezifisch%@$(SPEZIFISCH)@ ; \
+ $(UNTERSTIMMEN_REGEX); \
+ /%STR_\($(STROPHEN)\)%/{ \
+ s/%[A-Z_0-9]\+%//; \
+ p; \
+ d; \
+ }; \
+ /%[A-Z_0-9]\+%/d \
+ " "$<" > "$@"
+
+%.pdf: %.pre *.ly
+ lilypond $<
+