summaryrefslogtreecommitdiff
path: root/Masithi_Amen/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-29 10:03:34 +0100
committerErich Eckner <git@eckner.net>2020-01-29 10:03:34 +0100
commitf5e51746bb49c8f3aa2e9a81a82d7f776124a836 (patch)
treed1309dfa5c280ecbd6bbc91a6898b99316e38e92 /Masithi_Amen/Makefile
parent7589bf97493f8a641d8d582928192dcb93314fb3 (diff)
downloadMusik-f5e51746bb49c8f3aa2e9a81a82d7f776124a836.tar.xz
Masithi_Amen: Makefile neu
Diffstat (limited to 'Masithi_Amen/Makefile')
-rw-r--r--Masithi_Amen/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Masithi_Amen/Makefile b/Masithi_Amen/Makefile
new file mode 100644
index 0000000..4a6b81d
--- /dev/null
+++ b/Masithi_Amen/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 find . -name '*.ly'))
+ m4 <"$<" >"$@"
+
+%.pdf: %.post
+ lilypond $<
+ pkill -SIGHUP -xf "mupdf(-x11)? $@" || true