summaryrefslogtreecommitdiff
path: root/Dos_Kelbl/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-07 09:03:11 +0100
committerErich Eckner <git@eckner.net>2020-02-07 09:03:11 +0100
commit1576fc829922fe958a31414bc6265809606c6178 (patch)
treef3538e14aac4abff952eaaee45d960d7d37165f8 /Dos_Kelbl/Makefile
parent50b6503fdc62a1294e61b887edf31800edcab39b (diff)
downloadMusik-1576fc829922fe958a31414bc6265809606c6178.tar.xz
Dos_Kelbl neu
Diffstat (limited to 'Dos_Kelbl/Makefile')
-rw-r--r--Dos_Kelbl/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Dos_Kelbl/Makefile b/Dos_Kelbl/Makefile
new file mode 100644
index 0000000..dbe7f79
--- /dev/null
+++ b/Dos_Kelbl/Makefile
@@ -0,0 +1,25 @@
+CURDOC=$(shell basename "$(CURDIR)")
+
+EXTRAS=$(shell ../.meta/find-extras)
+
+all: $(CURDOC)$(EXTRAS).pdf $(CURDOC)$(EXTRAS)-tolino.pdf
+
+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')) ../.meta/header.ly
+ cat ../.meta/header.ly "$<" \
+ |m4 \
+ >"$@"
+
+%.pdf: %.post
+ lilypond $<
+ pkill -SIGHUP -xf "mupdf(-x11)? $@" || true