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