summaryrefslogtreecommitdiff
path: root/wo
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-10-24 21:42:00 +0200
committerErich Eckner <git@eckner.net>2016-10-24 21:42:00 +0200
commit925a68301158f883dbbf807ecc88732d7af131d2 (patch)
treef576bf6d1c9990ace174ec892f897e62e5dfb3dc /wo
parent586698c49b6f691d7ab2526fb8686ac0889445cb (diff)
downloadMusik-925a68301158f883dbbf807ecc88732d7af131d2.tar.xz
wo hat jetzt Makefile
Diffstat (limited to 'wo')
-rw-r--r--wo/Makefile22
-rw-r--r--wo/wo.ly3
2 files changed, 23 insertions, 2 deletions
diff --git a/wo/Makefile b/wo/Makefile
new file mode 100644
index 0000000..091a052
--- /dev/null
+++ b/wo/Makefile
@@ -0,0 +1,22 @@
+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=
+endif
+
+all: $(CURDOC).pdf
+
+clean:
+ rm -f *.pre
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+%.pre: %.ly
+ sed "s@%spezifisch%@$(SPEZIFISCH)@" "$<" > "$@"
+
+%.pdf: %.pre *.ly
+ lilypond $<
+
diff --git a/wo/wo.ly b/wo/wo.ly
index 8c86f47..09f5b30 100644
--- a/wo/wo.ly
+++ b/wo/wo.ly
@@ -6,8 +6,7 @@
%\include "parts/III.ly"
-#(set! paper-alist (cons '("kindle" . (cons (* 210 mm) (* 130 mm))) paper-alist))
-#(set-default-paper-size "kindle")
+%spezifisch%
\pointAndClickOff
% 5.4 M -- > 687 K