diff options
Diffstat (limited to 'Das_grosze_Wunder_hat_ganz_klein_begonnen/Makefile')
-rw-r--r-- | Das_grosze_Wunder_hat_ganz_klein_begonnen/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Das_grosze_Wunder_hat_ganz_klein_begonnen/Makefile b/Das_grosze_Wunder_hat_ganz_klein_begonnen/Makefile new file mode 100644 index 0000000..20e6f0a --- /dev/null +++ b/Das_grosze_Wunder_hat_ganz_klein_begonnen/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 $< |