summaryrefslogtreecommitdiff
path: root/Das_Lieben_bringt_grosz_Freud/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Das_Lieben_bringt_grosz_Freud/Makefile')
-rw-r--r--Das_Lieben_bringt_grosz_Freud/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Das_Lieben_bringt_grosz_Freud/Makefile b/Das_Lieben_bringt_grosz_Freud/Makefile
new file mode 100644
index 0000000..cb66cc7
--- /dev/null
+++ b/Das_Lieben_bringt_grosz_Freud/Makefile
@@ -0,0 +1,22 @@
+CURDOC=$(shell basename "$(CURDIR)")
+
+all: $(CURDOC).pdf
+ pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true
+
+clean:
+ rm -f *.pre
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+include ../.meta/*.mk
+
+%.pre: %.ly
+ cat "$<" > "$@"
+
+%.post: %.pre $(patsubst %.ly,%.pre, $(shell ls *.ly))
+ m4 <"$<" >"$@"
+
+%.pdf: %.post
+ lilypond $<
+ pkill -SIGHUP -xf "mupdf $@" || true