summaryrefslogtreecommitdiff
path: root/Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile')
-rw-r--r--Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile b/Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile
new file mode 100644
index 0000000..90faa64
--- /dev/null
+++ b/Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile
@@ -0,0 +1,21 @@
+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
+ m4 <"$<" >"$@"
+
+%.pdf: %.post $(patsubst %.ly,%.post, $(shell ls *.ly))
+ lilypond $<